Create user's API key
POST/users/:user_id/api-keys
Create Api key for user keys collection
Request
Path Parameters
user_id stringrequired
User's ID
- application/json
Body
name string
Responses
- 201
Api key created
- application/json
- Schema
- Example (from schema)
Schema
id integer
Internal identifier
name string
API Key unique name
user_id integer
API Key owner
created_at date-time
Date time with milliseconds
last_used_at date-time
Date time with milliseconds
api_key string
Generated API Key
{
"id": 0,
"name": "string",
"user_id": 0,
"created_at": "2019-07-30T06:43:40.252Z",
"last_used_at": "2019-07-30T06:43:40.252Z",
"api_key": "string"
}
Loading...