cURL
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.
full_access
sending_access
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" }