Manage API keys
Create API key
Changed onCreates an API key for the specified Nylas application.
post/v3/admin/applications/{application_id}/api-keys
Request
- Base URLhttps://api.us.nylas.com
- Auth
- HTTP bearer
- or HTTP bearer
Request body
Example request
{
"name": "example-key",
"expires_in": 90
}Response
OK
Example response
{
"request_id": "5fa64c92-e840-4357-86b9-2aa364d35b88",
"data": {
"api_key": "<NYLAS_API_KEY>",
"application_id": "ad410018-d306-43f9-8361-fa5d7b2172e0",
"created_at": 1742932766,
"expires_at": 1753300766,
"id": "<NYLAS_API_KEY_ID>",
"name": "example-key",
"permissions": [
"all"
],
"status": "active",
"updated_at": 1742932766
}
}Changes
- breaking
the
request property type changed fromnumbertointeger - warning
the
request property's max was set to9125.00 - warning
the
request property's min was set to1.00
- breaking
- info
added the optional property
/to the response with the status
- info