POST
/
credentials
curl --request POST \
  --url https://api.voiceos.io/credentials \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "credential": {
    "provider": "openai",
    "api_key": "<string>"
  },
  "metadata": {}
}'
{
  "id": "<string>",
  "uri": "<string>",
  "credential": {
    "provider": "openai",
    "api_key": "<string>"
  },
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "account_id": "<string>",
  "metadata": {}
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
credential
object
required

The credential of the provider.

metadata
object

The metadata of the credential.

Response

200
application/json
Successful Response
id
string
required

The credential id

uri
string
required

The uri of the credential.

credential
object
required

The credentials of the provider.

created_at
string
required

The date the credential was created.

updated_at
string
required

The date the credential was last updated.

account_id
string
required

The id associated with the credential.

metadata
object

The metadata of the credential.