curl --request POST \
--url https://app.tryordinal.com/api/v1/approvals \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"postId": "550e8400-e29b-41d4-a716-446655440000",
"approvals": [
{
"userId": "550e8400-e29b-41d4-a716-446655440011",
"message": "Please review the messaging before we publish",
"dueDate": "2026-01-14T17:00:00.000Z",
"isBlocking": true
}
]
}
'{
"createdApprovals": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "Requested",
"isBlocking": true,
"message": "<string>",
"dueDate": "2023-11-07T05:31:56Z",
"approvedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"user": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"firstName": "<string>",
"lastName": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
},
"requestedBy": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"firstName": "<string>",
"lastName": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}
}
],
"existingApprovals": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "Requested",
"isBlocking": true,
"message": "<string>",
"dueDate": "2023-11-07T05:31:56Z",
"approvedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"user": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"firstName": "<string>",
"lastName": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
},
"requestedBy": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"firstName": "<string>",
"lastName": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}
}
]
}Create one or more approval requests for a post
curl --request POST \
--url https://app.tryordinal.com/api/v1/approvals \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"postId": "550e8400-e29b-41d4-a716-446655440000",
"approvals": [
{
"userId": "550e8400-e29b-41d4-a716-446655440011",
"message": "Please review the messaging before we publish",
"dueDate": "2026-01-14T17:00:00.000Z",
"isBlocking": true
}
]
}
'{
"createdApprovals": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "Requested",
"isBlocking": true,
"message": "<string>",
"dueDate": "2023-11-07T05:31:56Z",
"approvedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"user": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"firstName": "<string>",
"lastName": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
},
"requestedBy": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"firstName": "<string>",
"lastName": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}
}
],
"existingApprovals": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "Requested",
"isBlocking": true,
"message": "<string>",
"dueDate": "2023-11-07T05:31:56Z",
"approvedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"user": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"firstName": "<string>",
"lastName": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
},
"requestedBy": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"firstName": "<string>",
"lastName": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}
}
]
}API key authentication. Generate an API key from your workspace settings.
Was this page helpful?