POST /api/organizations/{organizationId}/users/{userId}/api-keys
kio-link-bms.session_token: ********************
x-api-key: ********************
{ "name": "string", "expiresIn": 86400, "prefix": "string", "metadata": { "property1": "string", "property2": "string" } }
curl --location '/api/auth/api-key/create' \ --header 'Origin: {{bmsOrigin}}' \ --header 'Content-Type: application/json' \ --data '{ "name": "string", "expiresIn": 86400, "prefix": "string", "metadata": { "property1": "string", "property2": "string" } }'
{ "id": "string", "name": "string", "start": "string", "prefix": "string", "referenceId": "string", "enabled": true, "expiresAt": "2019-08-24T14:15:22.123Z", "lastRequest": "2019-08-24T14:15:22.123Z", "requestCount": 0, "remaining": 0, "rateLimitEnabled": true, "rateLimitTimeWindow": 0, "rateLimitMax": 0, "refillInterval": 0, "refillAmount": 0, "lastRefillAt": "2019-08-24T14:15:22.123Z", "permissions": { "property1": [ "string" ], "property2": [ "string" ] }, "metadata": { "property1": "string", "property2": "string" }, "createdAt": "2019-08-24T14:15:22.123Z", "updatedAt": "2019-08-24T14:15:22.123Z", "key": "string" }