List actions awaiting endorsement
curl --request GET \
--url https://api.anchorage-staging.com/v4/endorsements/actions \
--header 'Api-Access-Key: <api-key>'import requests
url = "https://api.anchorage-staging.com/v4/endorsements/actions"
headers = {"Api-Access-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'Api-Access-Key': '<api-key>'}};
fetch('https://api.anchorage-staging.com/v4/endorsements/actions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"id": "3486b413-93d3-4447-afce-2b9c9dc34a32",
"resourceType": "ACCOUNT",
"resourceId": "3486b413-93d3-4447-afce-2b9c9dc34a32",
"subjectId": "3486b413-93d3-4447-afce-2b9c9dc34a32",
"actionType": "WITHDRAWAL",
"status": "PENDING",
"receivedEndorsements": [
{
"keyId": "3486b413-93d3-4447-afce-2b9c9dc34a32",
"approvalGroupId": "3486b413-93d3-4447-afce-2b9c9dc34a32",
"endorsedAt": "2019-01-02T12:34:56.000Z"
}
],
"submittedAt": "2019-01-02T12:34:56.000Z",
"expiresAt": "2019-01-02T12:34:56.000Z"
}
],
"page": {
"endCursor": "<string>"
}
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}List actions awaiting endorsement
Poll this endpoint for status — there is no push notification.
resourceType is required: every resource type’s ids are bare UUIDs, so resourceId on its own
doesn’t say which namespace it belongs to. Omit resourceId to list every action of that resource
type.
GET
/
endorsements
/
actions
List actions awaiting endorsement
curl --request GET \
--url https://api.anchorage-staging.com/v4/endorsements/actions \
--header 'Api-Access-Key: <api-key>'import requests
url = "https://api.anchorage-staging.com/v4/endorsements/actions"
headers = {"Api-Access-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'Api-Access-Key': '<api-key>'}};
fetch('https://api.anchorage-staging.com/v4/endorsements/actions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"id": "3486b413-93d3-4447-afce-2b9c9dc34a32",
"resourceType": "ACCOUNT",
"resourceId": "3486b413-93d3-4447-afce-2b9c9dc34a32",
"subjectId": "3486b413-93d3-4447-afce-2b9c9dc34a32",
"actionType": "WITHDRAWAL",
"status": "PENDING",
"receivedEndorsements": [
{
"keyId": "3486b413-93d3-4447-afce-2b9c9dc34a32",
"approvalGroupId": "3486b413-93d3-4447-afce-2b9c9dc34a32",
"endorsedAt": "2019-01-02T12:34:56.000Z"
}
],
"submittedAt": "2019-01-02T12:34:56.000Z",
"expiresAt": "2019-01-02T12:34:56.000Z"
}
],
"page": {
"endCursor": "<string>"
}
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}Query Parameters
Which namespace to list actions for, and which namespace resourceId belongs to when supplied.
Which namespace a resource id belongs to, and which family of action types that resource
participates in:
ACCOUNT— transaction action types (WITHDRAWAL,DEPOSIT) and trusted-destination action types (TRUSTED_DESTINATION_ADD,TRUSTED_DESTINATION_REMOVE). A trusted destination is added to or removed from an account, so such a policy scopes to an account, to any account above it, or to the organization — never to an individual destination.POLICY— policy-governance action types (POLICY_CREATE,POLICY_ARCHIVE).KEY— approval-key-governance action types (KEY_REGISTER,KEY_ARCHIVE).APPROVAL_GROUP— approval-group-governance action types (KEY_GROUP_CREATE,KEY_GROUP_ARCHIVE).
For the creation action types (POLICY_CREATE, KEY_REGISTER, KEY_GROUP_CREATE) there is no
resource yet, so a policy's resourceIds are the root account ids it governs even though its
resourceType names the family being created.
Available options:
ACCOUNT, POLICY, KEY, APPROVAL_GROUP Was this page helpful?