List information for current API key
curl --request GET \
--url https://api.anchorage-staging.com/v2/apikey \
--header 'Api-Access-Key: <api-key>'import requests
url = "https://api.anchorage-staging.com/v2/apikey"
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/apikey', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"id": "b5a58566763e77e2d87a53463013981be7c0b048c1c0dd39ba44e77c99bc1351",
"permissions": [
{
"permission": "READ",
"vaultIds": [
"1c920f4241b78a1d483a29f3c24b6c4c",
"55e89d4a644d736b01533a2ea9b32a20"
]
},
{
"permission": "TRADE"
}
]
}
}{
"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'."
}List information for current API key
Permissions required: none
Get the user information for your API key.
As with any endpoint, a signature included in the request will be validated. This can be used to confirm the associated signing key as well information about the current API key.
GET
/
apikey
List information for current API key
curl --request GET \
--url https://api.anchorage-staging.com/v2/apikey \
--header 'Api-Access-Key: <api-key>'import requests
url = "https://api.anchorage-staging.com/v2/apikey"
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/apikey', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"id": "b5a58566763e77e2d87a53463013981be7c0b048c1c0dd39ba44e77c99bc1351",
"permissions": [
{
"permission": "READ",
"vaultIds": [
"1c920f4241b78a1d483a29f3c24b6c4c",
"55e89d4a644d736b01533a2ea9b32a20"
]
},
{
"permission": "TRADE"
}
]
}
}{
"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'."
}Authorizations
An API key associated with a security role
Response
Information for current API key
Show child attributes
Show child attributes
Example:
{
"id": "b5a58566763e77e2d87a53463013981be7c0b048c1c0dd39ba44e77c99bc1351",
"permissions": [
{
"permission": "READ",
"vaultIds": [
"1c920f4241b78a1d483a29f3c24b6c4c",
"55e89d4a644d736b01533a2ea9b32a20"
]
},
{ "permission": "TRADE" }
]
}
Was this page helpful?