List what an API key did
const url = 'https://api.deploybase.eu/api/v1/api/v1/api-keys/example/activity';const options = {method: 'GET', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.deploybase.eu/api/v1/api/v1/api-keys/example/activity \ --header 'Authorization: <Authorization>'Returns one of the current team’s API keys’ requests, newest first, 50 per page, from the audit log, which keeps 90 days. Refused and failed requests are included. Each event carries a ready-made lowercase phrase (“created a deployment of {project}”, or “tried to …” when outcome is refused or failed); {project} appears in the phrase only when project is non-null, and is where its name goes. path is the route pattern, never a concrete URL. client is the client the request claimed (unverified). Pass next_cursor back as cursor for older events; it is null on the last page. Requires the member role.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”API key ID (UUID)
Query Parameters
Section titled “ Query Parameters ”Next_cursor from the previous page
Responses
Section titled “ Responses ”OK
object
object
object
Events are newest first; never null.
object
Client is the client the request claimed to come from (unverified); null when it named none.
CreatedAt is when the request was made, in UTC.
Outcome is “done” below 400, “refused” for 4xx and “failed” for 5xx.
Path is the route pattern (“/api/v1/projects/:id”), never a concrete URL. Empty when the stored path is not a known pattern.
Phrase is lowercase-first plain English: “created a deployment of {project}”, or “tried to create a deployment of {project}” when the request was refused or failed. It holds “{project}” if and only if project is non-null; render the name there.
Project is the project the request acted on; null when unknown or deleted.
object
NextCursor fetches the next older page as ?cursor=; null when there is none.
Example
{ "data": { "events": [ { "client": "dashboard", "method": "POST", "outcome": "done", "path": "/api/v1/deployments", "phrase": "created a deployment of {project}", "status_code": 201 } ] }}INVALID_INPUT
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}Unauthorized
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}Forbidden
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}RESOURCE_NOT_FOUND
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}Internal Server Error
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}Live 174db30c built