Get Approvals
GET/generic-approvals
Get a list of approvals, which can be filtered by requester ID, status, or reference type. You can use the "Mine" query parameter to return all approvals for the current approver. This endpoint is for generic approvals, unlike the access-request-approval endpoint, and does not include access-request-approvals. Absence of all query parameters will will default to mine=true.
Request
Query Parameters
Returns the list of approvals for the current caller.
Returns the list of approvals for a given requester ID.
Filter results using the standard syntax described in V3 API Standard Collection Parameters
Filtering is supported for the following fields and operators:
status: eq
referenceType: eq
Responses
- 200
- 400
- 401
- 403
- 429
- 500
List of approvals.
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
Array [
]
Array [
]
Array [
]
Array [
]
Array [
]
Array [
]
]
The Approval ID
approvers
object[]
Object representation of an approver of an approval
The identity ID
Possible values: [IDENTITY
]
Indication of what group the identity belongs to. Ie, IDENTITY, GOVERNANCE_GROUP, etc
Name of the identity
Date the approval was created
Type of approval
name
object[]
The name of the approval for a given locale
Name of the approval
What locale the name of the approval is using
batchRequest
object
The name of the approval for a given locale
ID of the batch
How many approvals are going to be in this batch. Defaults to 1 if not provided.
description
object[]
The description of the approval for a given locale
The description of what the approval is asking for
What locale the description of the approval is using
Possible values: [HIGH
, MEDIUM
, LOW
]
The priority of the approval
requester
object
Identity Object
The identity ID
Possible values: [IDENTITY
]
Indication of what group the identity belongs to. Ie, IDENTITY, GOVERNANCE_GROUP, etc
Name of the identity
comments
object[]
Object representation of a comment on the approval
author
object
Identity Object
The identity ID
Possible values: [IDENTITY
]
Indication of what group the identity belongs to. Ie, IDENTITY, GOVERNANCE_GROUP, etc
Name of the identity
Comment to be left on an approval
Date the comment was created
approvedBy
object[]
Array of approvers who have approved the approval
The identity ID
Possible values: [IDENTITY
]
Indication of what group the identity belongs to. Ie, IDENTITY, GOVERNANCE_GROUP, etc
Name of the identity
rejectedBy
object[]
Array of approvers who have rejected the approval
The identity ID
Possible values: [IDENTITY
]
Indication of what group the identity belongs to. Ie, IDENTITY, GOVERNANCE_GROUP, etc
Name of the identity
Date the approval was completed
Possible values: [SINGLE
, DOUBLE
, TRIPLE
, QUARTER
, HALF
, ALL
]
Criteria that needs to be met for an approval to be marked as approved
Possible values: [PENDING
, APPROVED
, REJECTED
]
The current status of the approval
Json string representing additional attributes known about the object to be approved.
referenceData
object[]
Reference data related to the approval
Id of the reference object
What reference object does this ID correspond to
[
{
"approvalId": "38453251-6be2-5f8f-df93-5ce19e295837",
"approvers": [
{
"id": "85d173e7d57e496569df763231d6deb6a",
"type": "IDENTITY",
"name": "John Doe"
}
],
"createdDate": "2023-04-12T23:20:50.52Z",
"type": "ENTITLEMENT_DESCRIPTIONS",
"name": [
{
"value": "Audit DB Access",
"locale": "en_US"
}
],
"batchRequest": {
"batchId": "38453251-6be2-5f8f-df93-5ce19e295837",
"batchSize": 100
},
"description": [
{
"value": "This access allows viewing and editing of workflow resource",
"locale": "en_US"
}
],
"priority": "HIGH",
"requester": {
"id": "85d173e7d57e496569df763231d6deb6a",
"type": "IDENTITY",
"name": "John Doe"
},
"comments": [
{
"author": {
"id": "85d173e7d57e496569df763231d6deb6a",
"type": "IDENTITY",
"name": "John Doe"
},
"comment": "Looks good",
"createdDate": "2023-04-12T23:20:50.52Z"
}
],
"approvedBy": [
{
"id": "85d173e7d57e496569df763231d6deb6a",
"type": "IDENTITY",
"name": "John Doe"
}
],
"rejectedBy": [
{
"id": "85d173e7d57e496569df763231d6deb6a",
"type": "IDENTITY",
"name": "John Doe"
}
],
"completedDate": "2023-04-12T23:20:50.52Z",
"approvalCriteria": "SINGLE",
"status": "PENDING",
"additionalAttributes": "{ \"llm_description\": \"generated description\" }",
"referenceData": [
{
"id": "64012350-8fd9-4f6c-a170-1fe123683899",
"type": "AccessRequestId"
}
]
}
]
Client Error - Returned if the request body is invalid.
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Array [
]
Fine-grained error code providing more detail of the error.
Unique tracking id for the error.
messages
object[]
Generic localized reason for error
The locale for the message text, a BCP 47 language tag.
Possible values: [DEFAULT
, REQUEST
, null
]
An indicator of how the locale was selected. DEFAULT means the locale is the system default. REQUEST means the locale was selected from the request context (i.e., best match based on the Accept-Language header). Additional values may be added in the future without notice.
Actual text of the error message in the indicated locale.
causes
object[]
Plain-text descriptive reasons to provide additional detail to the text provided in the messages field
The locale for the message text, a BCP 47 language tag.
Possible values: [DEFAULT
, REQUEST
, null
]
An indicator of how the locale was selected. DEFAULT means the locale is the system default. REQUEST means the locale was selected from the request context (i.e., best match based on the Accept-Language header). Additional values may be added in the future without notice.
Actual text of the error message in the indicated locale.
{
"detailCode": "400.1 Bad Request Content",
"trackingId": "e7eab60924f64aa284175b9fa3309599",
"messages": [
{
"locale": "en-US",
"localeOrigin": "DEFAULT",
"text": "The request was syntactically correct but its content is semantically invalid."
}
],
"causes": [
{
"locale": "en-US",
"localeOrigin": "DEFAULT",
"text": "The request was syntactically correct but its content is semantically invalid."
}
]
}
Unauthorized - Returned if there is no authorization header, or if the JWT token is expired.
- application/json
- Schema
- Example (from schema)
Schema
A message describing the error
{
"error": "JWT validation failed: JWT is expired"
}
Forbidden - Returned if the user you are running as, doesn't have access to this end-point.
- application/json
- Schema
- Example (from schema)
- 403
Schema
Array [
]
Array [
]
Fine-grained error code providing more detail of the error.
Unique tracking id for the error.
messages
object[]
Generic localized reason for error
The locale for the message text, a BCP 47 language tag.
Possible values: [DEFAULT
, REQUEST
, null
]
An indicator of how the locale was selected. DEFAULT means the locale is the system default. REQUEST means the locale was selected from the request context (i.e., best match based on the Accept-Language header). Additional values may be added in the future without notice.
Actual text of the error message in the indicated locale.
causes
object[]
Plain-text descriptive reasons to provide additional detail to the text provided in the messages field
The locale for the message text, a BCP 47 language tag.
Possible values: [DEFAULT
, REQUEST
, null
]
An indicator of how the locale was selected. DEFAULT means the locale is the system default. REQUEST means the locale was selected from the request context (i.e., best match based on the Accept-Language header). Additional values may be added in the future without notice.
Actual text of the error message in the indicated locale.
{
"detailCode": "400.1 Bad Request Content",
"trackingId": "e7eab60924f64aa284175b9fa3309599",
"messages": [
{
"locale": "en-US",
"localeOrigin": "DEFAULT",
"text": "The request was syntactically correct but its content is semantically invalid."
}
],
"causes": [
{
"locale": "en-US",
"localeOrigin": "DEFAULT",
"text": "The request was syntactically correct but its content is semantically invalid."
}
]
}
An example of a 403 response object
{
"detailCode": "403 Forbidden",
"trackingId": "b21b1f7ce4da4d639f2c62a57171b427",
"messages": [
{
"locale": "en-US",
"localeOrigin": "DEFAULT",
"text": "The server understood the request but refuses to authorize it."
}
]
}
Too Many Requests - Returned in response to too many requests in a given period of time - rate limited. The Retry-After header in the response includes how long to wait before trying again.
- application/json
- Schema
- Example (from schema)
Schema
A message describing the error
{
"message": " Rate Limit Exceeded "
}
Internal Server Error - Returned if there is an unexpected error.
- application/json
- Schema
- Example (from schema)
- 500
Schema
Array [
]
Array [
]
Fine-grained error code providing more detail of the error.
Unique tracking id for the error.
messages
object[]
Generic localized reason for error
The locale for the message text, a BCP 47 language tag.
Possible values: [DEFAULT
, REQUEST
, null
]
An indicator of how the locale was selected. DEFAULT means the locale is the system default. REQUEST means the locale was selected from the request context (i.e., best match based on the Accept-Language header). Additional values may be added in the future without notice.
Actual text of the error message in the indicated locale.
causes
object[]
Plain-text descriptive reasons to provide additional detail to the text provided in the messages field
The locale for the message text, a BCP 47 language tag.
Possible values: [DEFAULT
, REQUEST
, null
]
An indicator of how the locale was selected. DEFAULT means the locale is the system default. REQUEST means the locale was selected from the request context (i.e., best match based on the Accept-Language header). Additional values may be added in the future without notice.
Actual text of the error message in the indicated locale.
{
"detailCode": "400.1 Bad Request Content",
"trackingId": "e7eab60924f64aa284175b9fa3309599",
"messages": [
{
"locale": "en-US",
"localeOrigin": "DEFAULT",
"text": "The request was syntactically correct but its content is semantically invalid."
}
],
"causes": [
{
"locale": "en-US",
"localeOrigin": "DEFAULT",
"text": "The request was syntactically correct but its content is semantically invalid."
}
]
}
An example of a 500 response object
{
"detailCode": "500.0 Internal Fault",
"trackingId": "b21b1f7ce4da4d639f2c62a57171b427",
"messages": [
{
"locale": "en-US",
"localeOrigin": "DEFAULT",
"text": "An internal fault occurred."
}
]
}