Pulsarr

Create API key

POST
/v1/api-keys/

Create a new API key for authentication

Authorization

headerX-API-Key<token>

API key authentication using X-API-Key header

Request Body

Name for a new API key

application/json
  1. body

Name for a new API key

name*string
Length1 <= length <= 100

Response Body

Default Response

application/json
  1. response
success*boolean
message*string
apiKey*

An API key, returned in full so the admin can copy it

Example Request
curl -X POST 'http://localhost:3003/v1/api-keys/' \  -H 'Content-Type: application/json' \  -d '{  "name": "string"}'
Example Response
{  "success": true,  "message": "string",  "apiKey": {    "id": 0,    "name": "string",    "key": "string",    "user_id": 0,    "created_at": "string",    "is_active": true  }}