Skip to main content
GET
/
approval_requests
Get approval requests
curl --request GET \
  --url https://api.sandbox.monite.com/v1/approval_requests \
  --header 'Authorization: Bearer <token>' \
  --header 'x-monite-entity-id: <x-monite-entity-id>' \
  --header 'x-monite-version: <x-monite-version>'
{
  "data": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "approved_by": [
        "3c90c3cc-0d44-4b50-8888-8dd25736052a"
      ],
      "created_by": "ea837e28-509b-4b6a-a600-d54b6aa0b1f5",
      "object_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "object_type": "account",
      "required_approval_count": 2,
      "role_ids": [
        "3c90c3cc-0d44-4b50-8888-8dd25736052a"
      ],
      "status": "waiting",
      "user_ids": [
        "3c90c3cc-0d44-4b50-8888-8dd25736052a"
      ],
      "rejected_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
    }
  ],
  "next_pagination_token": "<string>",
  "prev_pagination_token": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-monite-version
string<date>
required
x-monite-entity-id
string<uuid>
required

The ID of the entity that owns the requested resource.

Example:

"9d2b4c8f-2087-4738-ba91-7359683c49a4"

Query Parameters

order
enum<string>
default:asc

Sort order (ascending by default). Typically used together with the sort parameter.

Available options:
asc,
desc
limit
integer
default:100

The number of items (0 .. 100) to return in a single page of the response. The response may contain fewer items if it is the last or only page.

Required range: 1 <= x <= 100
pagination_token
string

A pagination token obtained from a previous call to this endpoint. Use it to get the next or previous page of results for your initial query. If pagination_token is specified, all other query parameters are ignored and inferred from the initial query.

If not specified, the first page of results will be returned.

sort
enum<string>

The field to sort the results by. Typically used together with the order parameter.

Available options:
created_at,
updated_at
created_at__gt
string<date-time>
created_at__lt
string<date-time>
created_at__gte
string<date-time>
created_at__lte
string<date-time>
updated_at__gt
string<date-time>
updated_at__lt
string<date-time>
updated_at__gte
string<date-time>
updated_at__lte
string<date-time>
object_id
string<uuid>
object_id__in
string<uuid>[]
status
enum<string>
Available options:
waiting,
approved,
rejected,
canceled
status__in
enum<string>[]
Available options:
waiting,
approved,
rejected,
canceled
user_id
string<uuid>
role_id
string<uuid>
object_type
enum<string>
Available options:
account,
approval,
approval_request,
approval_policy,
approval_policy_process,
audit_trail,
comment,
counterpart,
counterpart_address,
counterpart_bank_account,
counterpart_contact_person,
counterpart_partner_metadata,
counterpart_tax_id,
counterpart_vat_id,
delivery_note,
einvoicing,
entity,
entity_bank_account,
entity_settings,
entity_token,
entity_user,
entity_user_token,
entity_vat_ids,
export,
mailbox,
monitescript_process,
ocr_task,
onboarding,
overdue_reminder,
partner,
partner_internal_config,
partner_settings,
partner_token,
payable,
payable_line_item,
payables_credit_note,
payables_purchase_order,
payment,
payment_intent,
payment_link,
payment_record,
payment_reminder,
person,
product,
project,
receivable,
reconciliation,
recurrence,
receipt,
role,
tag,
todo_task,
todo_task_mute,
transaction,
webhook,
workflow,
workflow_pipeline
object_type__in
enum<string>[]
Available options:
account,
approval,
approval_request,
approval_policy,
approval_policy_process,
audit_trail,
comment,
counterpart,
counterpart_address,
counterpart_bank_account,
counterpart_contact_person,
counterpart_partner_metadata,
counterpart_tax_id,
counterpart_vat_id,
delivery_note,
einvoicing,
entity,
entity_bank_account,
entity_settings,
entity_token,
entity_user,
entity_user_token,
entity_vat_ids,
export,
mailbox,
monitescript_process,
ocr_task,
onboarding,
overdue_reminder,
partner,
partner_internal_config,
partner_settings,
partner_token,
payable,
payable_line_item,
payables_credit_note,
payables_purchase_order,
payment,
payment_intent,
payment_link,
payment_record,
payment_reminder,
person,
product,
project,
receivable,
reconciliation,
recurrence,
receipt,
role,
tag,
todo_task,
todo_task_mute,
transaction,
webhook,
workflow,
workflow_pipeline
created_by
string<uuid>

Response

Successful Response

data
object[]
required
next_pagination_token
string

A token that can be sent in the pagination_token query parameter to get the next page of results, or null if there is no next page (i.e. you've reached the last page).

prev_pagination_token
string

A token that can be sent in the pagination_token query parameter to get the previous page of results, or null if there is no previous page (i.e. you've reached the first page).