curl --request GET \
--url https://api.opal.dev/v1/requests/relay \
--header 'Authorization: Bearer <token>'{
"edges": [
{
"node": {
"id": "7c86c85d-0651-43e2-a748-d69d658418e8",
"created_at": "2021-01-06T20:00:00.000Z",
"updated_at": "2021-01-06T20:00:00.000Z",
"requester_id": "c86c85d-0651-43e2-a748-d69d658418e8",
"target_user_id": "r86c85d-0651-43e2-a748-d69d658418e8",
"target_group_id": "r86c85d-0651-43e2-a748-d69d658418e8",
"status": "pending",
"reason": "I need this resource.",
"duration_minutes": 1440,
"request_comments": [
{
"id": "7c86c85d-0651-43e2-a748-d69d658418e8",
"created_at": "2021-01-06T20:00:00.000Z",
"updated_at": "2021-01-06T20:00:00.000Z",
"request_id": "4c86c85d-0651-43e2-a748-d69d658418e8",
"user_id": "c86c85d-0651-43e2-a748-d69d658418e8",
"comment": "This is a comment."
}
],
"reviewer_stages": [
{
"requestedRoleName": "Admin",
"requestedItemName": "AWS Production Account",
"stages": [
{
"stage": 1,
"operator": "AND",
"reviewers": [
{
"id": "7c86c85d-0651-43e2-a748-d69d658418e8",
"status": "PENDING"
}
]
},
{
"stage": 2,
"operator": "OR",
"reviewers": [
{
"id": "8d86c85d-0651-43e2-a748-d69d658418e9",
"status": "APPROVED"
}
]
}
]
}
]
},
"cursor": "<string>"
}
],
"pageInfo": {
"hasNextPage": true,
"endCursor": "<string>",
"hasPreviousPage": true,
"startCursor": "<string>"
},
"totalCount": 123
}Returns a paginated list of requests using Relay-style cursor pagination.
curl --request GET \
--url https://api.opal.dev/v1/requests/relay \
--header 'Authorization: Bearer <token>'{
"edges": [
{
"node": {
"id": "7c86c85d-0651-43e2-a748-d69d658418e8",
"created_at": "2021-01-06T20:00:00.000Z",
"updated_at": "2021-01-06T20:00:00.000Z",
"requester_id": "c86c85d-0651-43e2-a748-d69d658418e8",
"target_user_id": "r86c85d-0651-43e2-a748-d69d658418e8",
"target_group_id": "r86c85d-0651-43e2-a748-d69d658418e8",
"status": "pending",
"reason": "I need this resource.",
"duration_minutes": 1440,
"request_comments": [
{
"id": "7c86c85d-0651-43e2-a748-d69d658418e8",
"created_at": "2021-01-06T20:00:00.000Z",
"updated_at": "2021-01-06T20:00:00.000Z",
"request_id": "4c86c85d-0651-43e2-a748-d69d658418e8",
"user_id": "c86c85d-0651-43e2-a748-d69d658418e8",
"comment": "This is a comment."
}
],
"reviewer_stages": [
{
"requestedRoleName": "Admin",
"requestedItemName": "AWS Production Account",
"stages": [
{
"stage": 1,
"operator": "AND",
"reviewers": [
{
"id": "7c86c85d-0651-43e2-a748-d69d658418e8",
"status": "PENDING"
}
]
},
{
"stage": 2,
"operator": "OR",
"reviewers": [
{
"id": "8d86c85d-0651-43e2-a748-d69d658418e9",
"status": "APPROVED"
}
]
}
]
}
]
},
"cursor": "<string>"
}
],
"pageInfo": {
"hasNextPage": true,
"endCursor": "<string>",
"hasPreviousPage": true,
"startCursor": "<string>"
},
"totalCount": 123
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Number of results to return after the cursor. Use either first/after or last/before, not both.
1 <= x <= 100Cursor to fetch results after. Used with 'first' for forward pagination.
Number of results to return before the cursor. Use either first/after or last/before, not both.
1 <= x <= 100Cursor to fetch results before. Used with 'last' for backward pagination.
Filter requests by their status.
The RequestStatus enum is used to represent the status of a request.
Returned from the GET Requests endpoint.
PENDING, APPROVED, DENIED, CANCELED Filter requests assigned to a specific user ID.
Filter requests made by a specific user ID.
A paginated list of requests using Relay-style cursor pagination.
Show child attributes
The Request object is used to represent a request.
Returned from the GET Requests endpoint.
Show child attributes
The unique identifier of the request.
"7c86c85d-0651-43e2-a748-d69d658418e8"
The date and time the request was created.
"2021-01-06T20:00:00.000Z"
The date and time the request was last updated.
"2021-01-06T20:00:00.000Z"
The unique identifier of the user who created the request.
"7c86c85d-0651-43e2-a748-d69d658418e8"
The status of the request.
PENDING, APPROVED, DENIED, CANCELED "pending"
The reason for the request.
"I need access to the AWS account."
The unique identifier of the user who is the target of the request.
"7c86c85d-0651-43e2-a748-d69d658418e8"
The unique identifier of the group who is the target of the request.
"7c86c85d-0651-43e2-a748-d69d658418e8"
The duration of the request in minutes.
120
The list of targets for the request.
Show child attributes
The ID of the resource requested.
"f454d283-ca87-4a8a-bdbb-df212eca5353"
The ID of the group requested.
"f454d283-ca87-4a8a-bdbb-df212eca5353"
The name of the access level requested.
"admin"
The ID of the access level requested on the remote system.
"arn:aws:iam::490306337630:role/SupportUser"
The name of the target.
"Engineering Team"
The ID of the target on the remote system.
"arn:aws:iam::490306337630:role/SupportUser"
The name of the target on the remote system.
"SupportUser"
The responses given to the custom fields associated to the request
Show child attributes
The type of the custom request field.
SHORT_TEXT, LONG_TEXT, BOOLEAN, MULTI_CHOICE "SHORT_TEXT"
"This is a response to a long text or short text or multi choice"
The stages configuration for this request
Show child attributes
The name of the requested item
The stages of review for this request
Show child attributes
The stage number
The operator to apply to reviewers in this stage
AND, OR The reviewers for this stage
Show child attributes
The unique identifier of the reviewer
The status of this reviewer's review
PENDING, APPROVED, REJECTED The user's full name.
"Jake Barnes"
The name of the requested role
The configured reviewer stages for every item in this request, or an error message if reviewers could not be loaded
Show child attributes
The name of the requested item
The ID of the resource requested.
"f454d283-ca87-4a8a-bdbb-df212eca5353"
The stages of review for this request
Show child attributes
The stage number
The operator to apply to reviewers in this stage
AND, OR The reviewers for this stage
Show child attributes
The unique identifier of the reviewer
The status of this reviewer's review
PENDING, APPROVED, REJECTED The user's full name.
"Jake Barnes"
The name of the access level requested.
"admin"
The ID of the access level requested on the remote system.
"arn:aws:iam::490306337630:role/SupportUser"
{
"id": "7c86c85d-0651-43e2-a748-d69d658418e8",
"created_at": "2021-01-06T20:00:00.000Z",
"updated_at": "2021-01-06T20:00:00.000Z",
"requester_id": "c86c85d-0651-43e2-a748-d69d658418e8",
"target_user_id": "r86c85d-0651-43e2-a748-d69d658418e8",
"target_group_id": "r86c85d-0651-43e2-a748-d69d658418e8",
"status": "pending",
"reason": "I need this resource.",
"duration_minutes": 1440,
"request_comments": [
{
"id": "7c86c85d-0651-43e2-a748-d69d658418e8",
"created_at": "2021-01-06T20:00:00.000Z",
"updated_at": "2021-01-06T20:00:00.000Z",
"request_id": "4c86c85d-0651-43e2-a748-d69d658418e8",
"user_id": "c86c85d-0651-43e2-a748-d69d658418e8",
"comment": "This is a comment."
}
],
"reviewer_stages": [
{
"requestedRoleName": "Admin",
"requestedItemName": "AWS Production Account",
"stages": [
{
"stage": 1,
"operator": "AND",
"reviewers": [
{
"id": "7c86c85d-0651-43e2-a748-d69d658418e8",
"status": "PENDING"
}
]
},
{
"stage": 2,
"operator": "OR",
"reviewers": [
{
"id": "8d86c85d-0651-43e2-a748-d69d658418e9",
"status": "APPROVED"
}
]
}
]
}
]
}The cursor for this request edge
Show child attributes
Whether there are more items after the end cursor
The cursor to continue pagination forwards
Whether there are more items before the start cursor
The cursor to continue pagination backwards
The total number of items available
Was this page helpful?