Skip to main content
GET
/
approval_policies
/
{approval_policy_id}
/
processes
/
{process_id}
Get an approval process by ID
curl --request GET \
  --url https://api.sandbox.monite.com/v1/approval_policies/{approval_policy_id}/processes/{process_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'x-monite-entity-id: <x-monite-entity-id>' \
  --header 'x-monite-version: <x-monite-version>'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "created_at": "2023-11-07T05:31:56Z",
  "input": {},
  "metadata": {},
  "status": "succeeded",
  "updated_at": "2023-11-07T05:31:56Z",
  "created_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "error": {},
  "script_snapshot": true,
  "updated_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

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"

Path Parameters

approval_policy_id
string<uuid>
required
process_id
string<uuid>
required

Response

Successful Response

id
string<uuid>
required
created_at
string<date-time>
required
input
object
required

The input for the script.

metadata
object
required

The metadata for the process.

status
enum<string>
required

Tthe current status of the approval policy process.

Available options:
succeeded,
waiting,
failed,
running,
canceled,
timed_out
updated_at
string<date-time>
created_by
string<uuid>
error
object

The error for the process.

script_snapshot

The script snapshot taken when script started.

updated_by
string<uuid>