Overview
This endpoint enables you to manage the API keys for your integration.
Generate API Keys
Request Parameters
API Key name - Minimum length: 5 characters - Maximum length: 20 characters
API Key scopes - Accepted scope can be found
here
API Key Description - Minimum length: 5 characters - Maximum length: 100
characters
Code Examples
curl -X POST "https://api.spendjuice.com/keys" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "test-key",
"description": "Test Key",
"scopes": ["resource.scopes"],
"expiry_date": "2024-12-23T17:55:42.921"
}'
Response
{
"data": {
"key": "xxx",
"description": "",
"name": "",
"scope": ["resource.scopes"],
"created_at": "2023-12-23T17:55:42.921",
"expiry_date_at": "2023-12-23T17:55:42.921"
}
}