API ReferenceApiKeys
Create API Key
Authorization
apiKey X-API-Key<token>
API key for authentication
In: header
Request Body
application/json
name*string
Length
1 <= length <= 100description?string
expiresAt?string
Format
date-timepermissions?
Response Body
application/json
curl -X POST "https://samva.app/api/v1/api-keys" \ -H "Content-Type: application/json" \ -d '{ "name": "string" }'{
"id": "string",
"name": "string",
"key": "string",
"description": "string",
"organizationId": "string",
"createdAt": "2019-08-24T14:15:22Z",
"expiresAt": "2019-08-24T14:15:22Z",
"lastUsedAt": "2019-08-24T14:15:22Z",
"isActive": true,
"permissions": {
"property1": [
"string"
],
"property2": [
"string"
]
},
"roleName": "string"
}