Get an approval requestComing soon
Returns where an approval request stands. Once it is approved, result holds the response the call returned when Matchai performed it.
Coming soon. Returns where an approval request stands. Once it is approved, result holds the response the call returned when Matchai performed 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 <= 64The 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 GET 'https://api.matchai.co/v1/approvals/string'{ "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": {} }}