You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`permissions` (Block, Optional) The permission of the API key. If omitted, the API key will have full permissions. (see [below for nested schema](#nestedblock--permissions))
41
59
-`project_id` (String) The ID of the project. If not set, the default project will be used.
42
-
-`scopes` (Set of String) The scopes of the API key. If not set, all scopes will be used.
60
+
-`read_only` (Boolean) Whether the API key is read-only. If omitted, the API key will have full permissions.
43
61
44
62
### Read-Only
45
63
46
64
-`created` (Number) The timestamp when the API key was created.
47
65
-`id` (String, Sensitive) The API key.
48
66
-`redacted_key` (String, Sensitive) The redacted API key.
67
+
-`scopes` (Set of String) The scopes of the API key.
68
+
69
+
<aid="nestedblock--permissions"></a>
70
+
### Nested Schema for `permissions`
71
+
72
+
Optional:
73
+
74
+
-`assistants` (String) Create and retrieve Assistants. `/v1/assistants`, `/v1/models (required for Assistants)`. Valid values: `read`, `write`. If omitted, the API key will not have access.
75
+
-`files` (String) Create and retrieve files. `/v1/files`. Valid values: `read`, `write`. If omitted, the API key will not have access.
76
+
-`fine_tuning` (String) Create and retrieve fine tuning jobs. `/v1/fine_tuning`. Valid values: `read`, `write`. If omitted, the API key will not have access.
77
+
-`model_capabilities` (String) Create chat completions, audio, embeddings, and images. `/v1/audio`, `/v1/chat/completions`, `/v1/embeddings`, `/v1/images`, `/v1/moderations`. Valid value: `write`. If omitted, the API key will not have access.
78
+
-`models` (String) List models this organization has access to. `/v1/models`. Valid value: `read`. If omitted, the API key will not have access.
79
+
-`threads` (String) Create and retrieve Threads/Messages/Runs. `/v1/threads`, `/v1/models (required for Threads)`. Valid values: `read`, `write`. If omitted, the API key will not have access.
0 commit comments