Get a request by ID
curl --request GET \
--url https://api.anchorage-staging.com/v2/atlas/requests/{requestId} \
--header 'Api-Access-Key: <api-key>'import requests
url = "https://api.anchorage-staging.com/v2/atlas/requests/{requestId}"
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/v2/atlas/requests/{requestId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"request": {
"agreementId": "<string>",
"approvalRequired": true,
"createdAt": "2023-11-07T05:31:56Z",
"initiatedBy": "pledgor",
"pledgorParticipantId": "<string>",
"requestId": "<string>",
"securedPartyParticipantId": "<string>",
"status": "proposed",
"type": "createOESAgreement",
"updatedAt": "2023-11-07T05:31:56Z",
"delegationChange": {
"delegationId": "<string>",
"items": [
{
"amount": {
"amount": "10.45234733",
"assetType": "ETH",
"tokenId": "123"
},
"currentAmount": {
"amount": "10.45234733",
"assetType": "ETH",
"tokenId": "123"
},
"resultingAmount": {
"amount": "10.45234733",
"assetType": "ETH",
"tokenId": "123"
},
"walletId": "<string>"
}
],
"vaultId": "<string>"
},
"expiresAt": "2023-11-07T05:31:56Z",
"oesAgreement": {
"exchangeAccountId": "<string>",
"exchangeProfileId": "<string>"
}
}
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}Get a request by ID
Permissions required: Read vault activity
Get a single request by its ID. A request is readable once it has reached you: your own proposals from the start, your counterparty’s once their quorum has endorsed them. It stays readable at every later status.
GET
/
atlas
/
requests
/
{requestId}
Get a request by ID
curl --request GET \
--url https://api.anchorage-staging.com/v2/atlas/requests/{requestId} \
--header 'Api-Access-Key: <api-key>'import requests
url = "https://api.anchorage-staging.com/v2/atlas/requests/{requestId}"
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/v2/atlas/requests/{requestId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"request": {
"agreementId": "<string>",
"approvalRequired": true,
"createdAt": "2023-11-07T05:31:56Z",
"initiatedBy": "pledgor",
"pledgorParticipantId": "<string>",
"requestId": "<string>",
"securedPartyParticipantId": "<string>",
"status": "proposed",
"type": "createOESAgreement",
"updatedAt": "2023-11-07T05:31:56Z",
"delegationChange": {
"delegationId": "<string>",
"items": [
{
"amount": {
"amount": "10.45234733",
"assetType": "ETH",
"tokenId": "123"
},
"currentAmount": {
"amount": "10.45234733",
"assetType": "ETH",
"tokenId": "123"
},
"resultingAmount": {
"amount": "10.45234733",
"assetType": "ETH",
"tokenId": "123"
},
"walletId": "<string>"
}
],
"vaultId": "<string>"
},
"expiresAt": "2023-11-07T05:31:56Z",
"oesAgreement": {
"exchangeAccountId": "<string>",
"exchangeProfileId": "<string>"
}
}
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}Was this page helpful?