Creates a new API key. The token value is included in the response.
Security
Bearer
- Productionhttps://api-dashboard.influencers.club/public/v1/accounts/tokens/
curl -i -X POST \
https://api-dashboard.influencers.club/public/v1/accounts/tokens/ \
-H 'Authorization: Bearer <YOUR_API_KEY_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"name": "string",
"scopes": [
"string"
]
}'Response
{ "id": 0, "name": "string", "scopes": [ "string" ], "active": true, "expires_at": "2019-08-24T14:15:22Z", "token": "string", "created_at": "2019-08-24T14:15:22Z", "last_used_at": "2019-08-24T14:15:22Z" }