Gravv
/Docs
Search docs or ask a question⌘K
DocsAgent
ChangelogTry sandbox
FX List orders waiting for approval

List orders waiting for approval

Lists orders in `waiting_approval`, newest first. Only orders made in the Dashboard wait for approval, so orders made with an API key never appear here. A scoped key needs `fx:order_approve`. You approve and reject orders in the Dashboard.

GEThttps://api.gravv.xyz/v1/fx/orders/pending-approvalsTry it
Api-Key

Query parameters

NameDescription
page:integer
Default1
items_per_page:integer
Page size. The API caps values above 100 at 100.
Default20

Response

Returns 200 OK. A page of orders waiting for approval

NameDescription
data:object
Show 5 child attributesobject
error:null

Errors

StatusMeaning
200A page of orders waiting for approval
400The key is not allowed to approve orders
Was this page helpful? Yes No
Request
cURLJavaScriptPythonGoRubyPHPJavaC#cURL
curl --request GET \
--url 'https://api.gravv.xyz/v1/fx/orders/pending-approvals?page=1&items_per_page=20' \
--header 'Api-Key: <api-key>'
Responseapplication/json
200400OK
{
"data": {
"items": [],
"items_per_page": 20,
"page": 1,
"total_items": 0,
"total_pages": 0
},
"error": null
}