Organizations
Delete the current organization
Starts an owner-authorized organization deletion operation, confirming the organization name in the request.
POST
Starts an owner-authorized organization deletion operation, confirming the organization name in the request. Repeating the same request with the same Idempotency-Key returns the existing organization-scoped operation.
apiKeyheader
x-api-key<token>idempotency-key*stringLength
1 <= length <= 255application/json- body
confirmationName*stringOperationAccepted
application/json- response
operation*links*import { createClient } from "samva";const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });const result = await samva.organizations.delete({ "confirmationName": "example"});Example Response
{ "operation": { "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" }, "links": { "self": "string", "resource": { "resource": { "type": "string", "id": "string" }, "href": "string" } }}Related documentation
Get the organization avatar upload URL
Returns where to upload the organization avatar. View request and response details for this Samva email API endpoint.
Get the current organization
Returns the organization for the current billing account. Use this endpoint to get the current organization through the Samva email API.