Using your API keys to gain access to the GraphQL API is a breeze. Yuzu's GraphQL API performs authorization using standard HTTP bearer authorization. Here's an example using cURL
:
$ |
|
Every GraphQL request requires two headers:
Header Name | Format |
---|---|
Authorization |
Bearer $YOUR_API_KEY |
Content-Type |
application/json |
The body of the request should be a json object with up to two parameters:
Parameter | Required? | Description |
---|---|---|
query |
Yes | The GraphQL string describing your query |
variables |
No | An object containing one or more variables that correspond to variables in your query |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|