cURL
curl --request POST \ --url https://public-api-v2.bags.fm/api/v1/agent/dev/keys/create \ --header 'Content-Type: application/json' \ --data ' { "token": "<string>", "name": "<string>" } '
{ "success": true, "response": { "apiKey": { "status": "active", "userId": "<string>", "name": "<string>", "keyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "key": "<string>", "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z", "lastUsedAt": "2023-11-07T05:31:56Z" } } }
Creates a new API key for accessing the Bags Public API and SDK.
Note: There is a maximum number of API keys that can be created per user.
JWT token from login
A descriptive name for the API key (1-255 characters)
1 - 255
Successfully created API key
true
Show child attributes