GET
/
projects
/
{projectIdOrName}
/
operations
/
{operationId}
/
logs
List logs for an operation
curl --request GET \
  --url https://api.withampersand.com/v1/projects/{projectIdOrName}/operations/{operationId}/logs \
  --header 'X-Api-Key: <api-key>'
[
  {
    "timestamp": "2023-07-13T21:34:44.816Z",
    "message": {
      "msg": "This is a log message",
      "error": "<string>",
      "operation_id": "<string>",
      "details": {
        "request": "GET /api/v1/users"
      }
    },
    "severity": "DEBUG"
  }
]

Authorizations

X-Api-Key
string
header
required

Path Parameters

projectIdOrName
string
required

The Ampersand project ID or project name.

operationId
string
required

Operation ID.

Response

List of logs

timestamp
string
required

The time the log was created.

Example:

"2023-07-13T21:34:44.816Z"

message
object
required

The log message object.

severity
string
required

The severity of the log.

Example:

"DEBUG"