Docs

Search documentation

Console
Browse API reference

List operations

GET/v1/projects/{project_id}/operations

A page of operations.

Request

cURL
curl --fail-with-body --silent --show-error \
  --request GET \
  --url "https://api.tachora.ai/v1/projects/${TACHORA_PROJECT_ID}/operations" \
  --header "Authorization: Bearer ${TACHORA_API_KEY}"

Set TACHORA_API_KEY and any resource IDs in your shell before running the command.

Path parameters

project_idstringRequired

Query parameters

limitinteger
  • Default 20
  • Minimum 1
  • Maximum 100
cursorstring

The next_cursor from the previous page.

resource_idstring

Only operations on this resource.

Responses

200

A page of operations.

401

Missing, invalid, expired or revoked credentials, or an API key whose creator no longer has access (unauthenticated).

403

Authenticated but not allowed (permission_denied), including users outside the sign-in allowlist.

404

The resource does not exist or the caller cannot see it (not_found).

200 JSON response fields
dataobject[]Required
data[].attemptsintegerRequired

How many times the worker has started this operation.

data[].completed_atstring · date-time
data[].created_atstring · date-timeRequired
data[].errorobject

Present when state is failed.

data[].error.codestringRequired
data[].error.messagestringRequired
data[].idstringRequired
  • Example "op_01jd3v7k8m0000000000000000"
data[].kindstringRequired
  • Values endpoint.create, endpoint.delete, instance.create, instance.delete, instance.start, instance.stop
data[].project_idstringRequired
data[].resource_idstringRequired

The endpoint or instance this operation acts on.

data[].statestringRequired

pending and running are transitional; succeeded, failed and cancelled are terminal. A create is cancelled when a delete supersedes it.

  • Values pending, running, succeeded, failed, cancelled
data[].stepsobject[]Required
data[].steps[].attemptsintegerRequired
  • Minimum 0
data[].steps[].finished_atstring · date-time
data[].steps[].last_errorstring
data[].steps[].namestringRequired
  • Example "reserve_capacity"
data[].steps[].started_atstring · date-time
data[].steps[].statestringRequired
  • Values pending, running, succeeded, failed, skipped
data[].updated_atstring · date-timeRequired
next_cursorstring
401, 403, 404 JSON response fields
errorobjectRequired
error.codestringRequired

Stable, machine-readable error code.

  • Values invalid_argument, unauthenticated, permission_denied, not_found, conflict, billing_setup_required, idempotency_key_reused, internal, unavailable, rate_limited, insufficient_capacity, quota_exceeded, subnet_full, resource_in_use, not_implemented
error.detailsobject[]

Per-field problems for invalid_argument.

error.details[].fieldstringRequired
error.details[].messagestringRequired
error.messagestringRequired

Human-readable explanation. Do not parse.

error.request_idstring

Echoes the X-Request-Id response header.