Skip to main content
POST
/
api
/
v1
/
auth
/
keys
Create API key
curl --request POST \
  --url https://api.torpedo.co.mz/api/v1/auth/keys \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "Production",
  "domainId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "Production",
    "domainId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "createdAt": "2023-11-07T05:31:56Z",
    "lastUsedAt": "2023-11-07T05:31:56Z",
    "key": "tor_abc123xyz..."
  }
}

Authorizations

X-API-Key
string
header
required

Body

application/json
workspaceId
string<uuid>
required
name
string
required
Required string length: 1 - 100
Example:

"Production"

domainId
string<uuid>
required

Must be a verified domain in your workspace

Response

API key created

data
object