This endpoint enables you to count the overall number of API keys for a specific project.
/projects/{project_id}/api-keys/count
This endpoint enables you to count the overall number of API keys for a specific project.
name
string
Filter for API key names that contain this value. The API can return partial matches.
value
string
Filter for the value of a specific API key.
project_id
string
required
The ID of the project you want to count API keys for.
Successful response
count
int
The number of API keys.
This response does not contain any headers
Successful response
{
"count": 16
}
/projects/{project_id}/api-keys
This endpoint enables you to list all API keys in a project.
Note that the API response only contains one page of results. To navigate to another page, use the
previous
or
next
path queries provided in the respone's
links
object.
page_size
int
Number of records per page.
page
int
Page number to retrieve.
name
string
Filter for API key names that contain this value. The API can return partial matches.
value
string
Filter for the value of a specific API key.
sort_by
string
Select a property to sort by. Allowed values:
created_at
,
name
,
value
.
sort_order
string
Select the order to sort by. Allowed values:
asc
,
desc
.
Successful response
items
array
pagination
object (Pagination)
page
int
Returns the number of the currently active page.
page_size
int
Returns the number of items per page.
item_count
int
Returns the total number of items.
links
array [Links]
This response does not contain any headers
Successful response
{
"items": [
{
"project_id": "project_1CCq9NurjJBRehCVCe8XQY",
"api_key_id": "api_key_1CCq9NwWhBxwjAgHzpuZx4",
"created_at": "2023-06-07T17:32:28Z",
"name": "Development key",
"value": "19Kc5nhC7...ADWwAbTuUer"
}
],
"pagination": {
"page": 123,
"page_size": 123,
"item_count": 123
},
"links": [
{
"rel": "previous",
"href": "/projects?page_size=20&name=aaa&sort_by=name&sort_order=desc&page=2"
}
]
}
/projects/{project_id}/api-keys
This endpoint enables you to create a new API key in a specific project.
name
string
required
The name of the Admin API key. Also visible in the dashboard. You may set any value that fits your organization purposes.
API key created successfully
project_id
string
The unique ID of the project that the API key belongs to.
api_key_id
string
The unique ID of an API key.
created_at
string
The date when the API key was created. This field uses the ATOM date-time format:
2024-02-05T00:00:00+01:00
name
string
The name of the API key. Also visible in the dashboard. You may set any value that fits your organization purposes.
value
string
The actual value of the API key. Use this value to authenticate your requests to the API.
This response does not contain any headers
{
"name": "string"
}
API key created successfully
{
"project_id": "project_1CCq9NurjJBRehCVCe8XQY",
"api_key_id": "api_key_1CCq9NwWhBxwjAgHzpuZx4",
"created_at": "2023-06-07T17:32:28Z",
"name": "Development key",
"value": "19Kc5nhC7...ADWwAbTuUer"
}
/projects/{project_id}/api-keys/{api_key_id}
This endpoint enables you to retrieve a specific API key from a project.
project_id
string
required
The ID of the project that the API key belongs to.
api_key_id
string
required
The ID of the API key to retrieve.
Successful response
project_id
string
The unique ID of the project that the API key belongs to.
api_key_id
string
The unique ID of an API key.
created_at
string
The date when the API key was created. This field uses the ATOM date-time format:
2024-02-05T00:00:00+01:00
name
string
The name of the API key. Also visible in the dashboard. You may set any value that fits your organization purposes.
value
string
The actual value of the API key. Use this value to authenticate your requests to the API.
This response does not contain any headers
Successful response
{
"project_id": "project_1CCq9NurjJBRehCVCe8XQY",
"api_key_id": "api_key_1CCq9NwWhBxwjAgHzpuZx4",
"created_at": "2023-06-07T17:32:28Z",
"name": "Development key",
"value": "19Kc5nhC7...ADWwAbTuUer"
}
/projects/{project_id}/api-keys/{api_key_id}
This endpoint enables you to delete an API key from a specific project.
Note that deleting an API key is permanent - there is no way to retrieve an API key after you delete it.
project_id
string
required
The ID of the project that the API key belongs to.
api_key_id
string
required
The ID of the API key you want to delete.
API key deleted successfully
This response is empty
This response does not contain any headers
/projects/{project_id}/api-keys/{api_key_id}
This endpoint enables you to update the
name
of a project that is tied to an API key.
name
string
The name of the project you want to update.
project_id
string
required
The ID of the project that the API key belongs to.
api_key_id
string
required
The ID of the API key to update.
API key updated successfully
project_id
string
The unique ID of the project that the API key belongs to.
api_key_id
string
The unique ID of an API key.
created_at
string
The date when the API key was created. This field uses the ATOM date-time format:
2024-02-05T00:00:00+01:00
name
string
The name of the API key. Also visible in the dashboard. You may set any value that fits your organization purposes.
value
string
The actual value of the API key. Use this value to authenticate your requests to the API.
This response does not contain any headers
{
"name": "My project 2"
}
API key updated successfully
{
"project_id": "project_1CCq9NurjJBRehCVCe8XQY",
"api_key_id": "api_key_1CCq9NwWhBxwjAgHzpuZx4",
"created_at": "2023-06-07T17:32:28Z",
"name": "Development key",
"value": "19Kc5nhC7...ADWwAbTuUer"
}