Operations

Get an asynchronous operation

Returns one durable asynchronous operation from the active organization. Use this endpoint to get an asynchronous operation through the Samva email API.

GET
/v1/operations/{operationId}

Returns one durable asynchronous operation from the active organization.

x-api-key<token>

In: header

Path Parameters

operationId*string
Match^op_[0-9a-hjkmnp-tv-z]{16,24}$

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/operations/string"
{  "id": "string",  "organizationId": "string",  "kind": "email-domain-provisioning",  "subject": {    "type": "string",    "id": "string"  },  "actor": {    "type": "user",    "id": "string"  },  "status": "pending",  "phase": "accepted",  "error": {    "code": "validation-failed",    "message": "string"  },  "createdAt": "string",  "updatedAt": "string",  "startedAt": "string",  "completedAt": "string"}