cURL
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_..." }
Generates a new API key for the authenticated user.
Prefix your API key with "Bearer ". Example: Authorization: Bearer soc_live_...
Authorization: Bearer soc_live_...
Key name
"My App"
Key created (raw key shown once)
"Store this key securely. It will not be shown again."
"sk_live_..."