Withdraw an approval requestComing soon
Withdraws a pending request, for example when the person changed their mind in your app. The account holder no longer sees it.
Coming soon. Withdraws a pending request, for example when the person changed their mind in your app. The account holder no longer sees it.
Scopes: none beyond a valid key or token
Pricing: Included with the connection.
AuthorizationBearer <matchai_<base62>>A personal API key, sent as Authorization: Bearer matchai_…. Create keys in Matchai under Settings → Connectors → Advanced (for developers). A key starts with matchai_ followed by letters and digits, carries the scopes chosen when it was created, and can be revoked at any time. Keys reach only the account that created them: to serve other professionals, use Connect with Matchai.
approval_id*stringApproval id.
1 <= length <= 64Idempotency-Key?stringA unique string (a UUID works). Retrying with the same key within 24 hours returns the first response instead of acting twice. Reusing a key with a different body returns 409 idempotency_key_reused.
1 <= length <= 255The approval.
application/json- response
id*stringApproval id.
1 <= length <= 64status*stringapproved means Matchai has performed the call; its outcome is in result.
"pending""approved""declined""expired""cancelled"operation_id*stringThe API operation waiting for approval, for example sendMessage.
method*string"POST""PUT""PATCH""DELETE"path*stringThe request path, for example /conversations/{conversation_id}/messages with the ids filled in.
summary*stringWhat the account holder was asked to approve.
approval_url*stringWhere the account holder answers.
uricreated_at*stringWhen the request was made.
date-timeexpires_at*stringWhen it lapses if nobody answers.
date-timeresolved_at?|When it was answered, expired or cancelled.
date-timeresult?|nullcurl -X POST 'https://api.matchai.co/v1/approvals/string/cancel' \ -H 'Idempotency-Key: 6f1d3c2a-0b7e-4f5a-9c8d-1e2f3a4b5c6d'{ "id": "string", "status": "pending", "operation_id": "string", "method": "POST", "path": "string", "summary": "string", "approval_url": "http://example.com", "created_at": "2019-08-24T14:15:22Z", "expires_at": "2019-08-24T14:15:22Z", "resolved_at": "2019-08-24T14:15:22Z", "result": { "status_code": 0, "body": {} }}