Skip to main content
POST
/
keys
Create API key
curl --request POST \
  --url https://api.social-api.ai/v1/keys \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "My App"
}
'
{
  "id": "<string>",
  "message": "Store this key securely. It will not be shown again.",
  "name": "<string>",
  "raw_key": "sk_live_..."
}

Authorizations

Authorization
string
header
required

Prefix your API key with "Bearer ". Example: Authorization: Bearer soc_live_...

Body

application/json

Key name

name
string
Example:

"My App"

Response

Key created (raw key shown once)

id
string
message
string
Example:

"Store this key securely. It will not be shown again."

name
string
raw_key
string
Example:

"sk_live_..."