curl --request POST \
--url https://api.example.com/v1/api-keys \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"permission": "<string>"
}
'Create a new API key.
curl --request POST \
--url https://api.example.com/v1/api-keys \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"permission": "<string>"
}
'full_access, sending_access, or read_only.curl -X POST https://www.unosend.co/api/v1/api-keys \
-H "Authorization: Bearer un_xxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"name": "Production Server"
}'
{
"id": "key_123",
"name": "Production Server",
"key": "un_abc123xyz...",
"created_at": "2024-01-15T10:30:00.000Z"
}