Create API Key
POST
/v1/users/self/api-keys
const url = 'https://example.com/api/v1/users/self/api-keys';const options = { method: 'POST', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"expiresAt":"example","name":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/users/self/api-keys \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{ "expiresAt": "example", "name": "example" }'Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”API Key Data
Media type application/json
object
expiresAt
string
name
required
string
Example generated
{ "expiresAt": "example", "name": "example"}Responses
Section titled “ Responses ”Created
Media type application/json
object
createdAt
string
expiresAt
string
id
string
lastUsedAt
string
name
string
token
string
userId
string
Example generated
{ "createdAt": "example", "expiresAt": "example", "id": "example", "lastUsedAt": "example", "name": "example", "token": "example", "userId": "example"}