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"
}