Show examples in:
JavascriptHTTP
Endpoint info
Available examples
Dashboard API > Organization mandate request

List all pending mandate requests

Warning: Experimental API

Please note that the Dashboard API is an experimental, prerelease API. This API method is considered unstable, and should be avoided in production environments and automations. Changes may occur at any time without warning.

Returns

Returns an array of resource objects of type organization_mandate_request.

Examples

GET https://site-api.datocms.com/organization-mandate-requests/pending HTTP/1.1
Authorization: Bearer YOUR-API-TOKEN
Accept: application/json
X-Api-Version: 3
Terminal window
curl -g 'https://site-api.datocms.com/organization-mandate-requests/pending' \
\
-H "Authorization: Bearer YOUR-API-TOKEN" \
-H "Accept: application/json" \
-H "X-Api-Version: 3"
await fetch(
"https://site-api.datocms.com/organization-mandate-requests/pending",
{
headers: {
Authorization: "Bearer YOUR-API-TOKEN",
Accept: "application/json",
"X-Api-Version": "3",
},
},
);
HTTP/1.1 200 OK
Content-Type: application/json
Cache-Control: cache-control: max-age=0, private, must-revalidate
X-RateLimit-Limit: 30
X-RateLimit-Remaining: 28
{
"data": [
{
"type": "organization_mandate_request",
"id": "312",
"relationships": {
"approver_organization": {
"data": {
"type": "organization",
"id": "124"
}
},
"requester_organization": {
"data": {
"type": "organization",
"id": "124"
}
}
},
"meta": {
"requester_organization_name": false,
"approver_organization_name": false
}
}
]
}