Skip to main content
POST
/
orgs
/
{orgId}
/
messages
/
{messageId}
/
approve
cURL
curl --request POST \
  --url https://api.useanima.sh/v1/orgs/{orgId}/messages/{messageId}/approve \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "reason": "<string>"
}
'
{
  "messageId": "<string>",
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

JWT Bearer token obtained from authentication. Pass as: Authorization: Bearer

Path Parameters

orgId
string
required

Organization identifier (from the URL path)

messageId
string
required

Message identifier requiring approval

Body

application/json

Input for approving or rejecting a pending message

action
enum<string>
required

Approval decision for the message

Available options:
approve,
reject
reason
string

Optional justification for the approval decision

Response

200 - application/json

OK

Result of a message approval or rejection action

messageId
string
required

Identifier of the processed message

status
enum<string>
required

Resulting status after the approval action

Available options:
SENT,
REJECTED,
FAILED
message
string
required

Human-readable result description