Operations
List asynchronous operations
Lists asynchronous operations for the active organization, newest first. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page.
GET
Lists asynchronous operations for the active organization, newest first. Pass nextCursor back as cursor for the next page; it is null on the last page.
apiKeyheader
x-api-key<token>limit?|nullcursor?stringkind?stringValue in
"email-domain-provisioning""organization-deletion"status?stringValue in
"pending""running""succeeded""failed"OperationPage
application/json- response
items*array<>nextCursor*string|nullimport { createClient } from "samva";const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });const result = await samva.operations.list({});Example Response
{ "items": [ { "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" } ], "nextCursor": "string"}Related documentation
Get an asynchronous operation
Returns one asynchronous operation from the active organization. Use this endpoint to get an asynchronous operation through the Samva email API.
Retry an asynchronous operation
Retries a failed operation in place when its error is retryable. Retrying an organization deletion additionally requires `organization:delete`.