curl --request POST \
--url https://api.fireworks.ai/v1/accounts/{account_id}/users/{user_id}/apiKeys \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"apiKey": {
"displayName": "<string>",
"expireTime": "2023-11-07T05:31:56Z",
"annotations": {}
}
}
'{
"keyId": "<string>",
"displayName": "<string>",
"key": "<string>",
"createTime": "2023-11-07T05:31:56Z",
"secure": true,
"email": "<string>",
"prefix": "<string>",
"expireTime": "2023-11-07T05:31:56Z",
"annotations": {},
"lastUsed": "2023-11-07T05:31:56Z"
}curl --request POST \
--url https://api.fireworks.ai/v1/accounts/{account_id}/users/{user_id}/apiKeys \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"apiKey": {
"displayName": "<string>",
"expireTime": "2023-11-07T05:31:56Z",
"annotations": {}
}
}
'{
"keyId": "<string>",
"displayName": "<string>",
"key": "<string>",
"createTime": "2023-11-07T05:31:56Z",
"secure": true,
"email": "<string>",
"prefix": "<string>",
"expireTime": "2023-11-07T05:31:56Z",
"annotations": {},
"lastUsed": "2023-11-07T05:31:56Z"
}Documentation Index
Fetch the complete documentation index at: https://fireworks.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication using your Fireworks API key. Format: Bearer <API_KEY>
The API key to be created.
Show child attributes
A successful response.
Unique identifier (Key ID) for the API key, used primarily for deletion.
Display name for the API key, defaults to "default" if not specified.
The actual API key value, only available upon creation and not stored thereafter.
Timestamp indicating when the API key was created.
Indicates whether the plaintext value of the API key is unknown to Fireworks. If true, Fireworks does not know this API key's plaintext value. If false, Fireworks does know the plaintext value.
Email of the user who owns this API key.
Timestamp indicating when the API key will expire. If not set, the key never expires.
Optional key-value annotations for this API key.
Show child attributes
Timestamp indicating when the API key was last used. Not set if the key has never been used.
Was this page helpful?