Using our GraphQL API
URL
Environment | URL |
---|---|
Sandbox | https://api.sandbox.nav.com/partners/graphql |
Production | https://api.nav.com/partners/graphql |
Required Headers
All GraphQL requests are required to provide the following headers:
Header | Value |
---|---|
x-api-key | Your API Key, provided by NAV |
x-partner-id | Your Partner ID, provided by NAV |
Content-Type | application/json |
Variables
We recommend passing query and mutation parameters as variables and not inline:
NOT RECOMMENDED
query MyQuery {
account(userID: "abc") {
....
}
}
RECOMMENDED
query MyQuery($userID: String) {
account(userID: $userID) {
....
}
}
variables:
{
"userID": "abc"
}