Skip to main content
POST
/
v2
/
keys
Create Key
curl --request POST \
  --url http://localhost:8000/v2/keys \
  --header 'Authorization: Bearer <token>'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Query Parameters

workspace_id
string | null

ID of the workspace to scope the key to

peer_id
string | null

ID of the peer to scope the key to

session_id
string | null

ID of the session to scope the key to

expires_at
string<date-time> | null

Response

Successful Response