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