|
1
|
type: object |
|
2
|
description: The API key's details. |
|
3
|
x-schemaName: ApiKeyResponse |
|
4
|
required: |
|
5
|
- id |
|
6
|
- token |
|
7
|
- redacted |
|
8
|
- title |
|
9
|
- type |
|
10
|
- last_used_at |
|
11
|
- created_by |
|
12
|
- created_at |
|
13
|
- revoked_by |
|
14
|
- revoked_at |
|
15
|
properties: |
|
16
|
id: |
|
17
|
type: string |
|
18
|
title: id |
|
19
|
description: The API key's ID. |
|
20
|
token: |
|
21
|
type: string |
|
22
|
title: token |
|
23
|
description: The API key's token. |
|
24
|
redacted: |
|
25
|
type: string |
|
26
|
title: redacted |
|
27
|
description: >- |
|
28
|
The redacted form of the API key's token. This is useful when showing |
|
29
|
portion of the token. For example `sk_...123`. |
|
30
|
title: |
|
31
|
type: string |
|
32
|
title: title |
|
33
|
description: The API key's title. |
|
34
|
type: |
|
35
|
type: string |
|
36
|
description: >- |
|
37
|
The API key's type. `secret` API keys are used for authenticating admin |
|
38
|
users, and `publishable` API key are used for storefronts and similar |
|
39
|
clients to scope requests to sales channels. |
|
40
|
enum: |
|
41
|
- secret |
|
42
|
- publishable |
|
43
|
last_used_at: |
|
44
|
type: string |
|
45
|
title: last_used_at |
|
46
|
description: The date the API key was last used. |
|
47
|
format: date-time |
|
48
|
created_by: |
|
49
|
type: string |
|
50
|
title: created_by |
|
51
|
description: The ID of the user that created the API key. |
|
52
|
created_at: |
|
53
|
type: string |
|
54
|
title: created_at |
|
55
|
description: The date the API key was created. |
|
56
|
format: date-time |
|
57
|
revoked_by: |
|
58
|
type: string |
|
59
|
title: revoked_by |
|
60
|
description: The ID of the user that revoked the API key. |
|
61
|
revoked_at: |
|
62
|
type: string |
|
63
|
title: revoked_at |
|
64
|
description: The date the API key was revoked. |
|
65
|
format: date-time |