π User guide: Dropea GraphQL API with Apollo
This guide shows you how to generate an API Key in Dropea and how to use it in Apollo Studio to interact with the GraphQL API.
π Generate API Key in Dropea
- Go to My Account β Access Tokens .
- Assign a name to your API Key βοΈ.

- Optionally, you can add an expiration date β³ (if you do not define a date, the API Key will be permanent).

- Select the permissions or scopes that your API Key will have.
For this example we will select:
- π€ View my username.
- π Create order.
- π¦ List products.
βΉοΈ Please note:
All the actions available in this section correspond to the operations you can perform using the Dropea GraphQL API.
- Click on Create Personal Access Token π.

π¨ Important:
Copy and store the token in a safe place.
For security reasons, you will not be able to see it again.
π Using the API Key in Apollo
- Enter Apollo Studio .
- Click on the settings icon βοΈ.

- In the Endpoint field, enter:
- In Shared Headers , add the following:
{
"x-api-key": "TU_API_KEY_AQUΓ"
}
- Save settings β
π’ Correct connection:
If you see a green light, everything is set up correctly.
π΄ If it remains in red:
Verify that the API Key is valid, that the endpoint is spelled correctly, and that the selected permissions are correct.
π€ View my user
1. Click on Query π.
2. Select the Me π₯ option.
3. Select the fields you want to see in the response π.
4. Press the Run button βΆοΈ.
5. You will receive a 200 β
response with your user information that you selected in step 4.

ποΈ Create an order
1. Click Mutation βοΈ.
2. Select OrderCreate π.
3. Add the 4 required arguments π.
4. Complete each argument with its corresponding data.
- As you add data, it will be displayed in the variables section .

π‘ Tip:
If you don't know which values to use, check the structure:
Mutation β OrderCreate β Customer β Country π
You can also press Ctrl + Space to see a list of available options.
β¨ Done!
You can now interact with the Dropea GraphQL API using Apollo Studio easily and quickly π.
π Final recommendation:
If you have any questions or encounter any errors, please review your API key permissions and endpoint settings. You can also contact us. Any improvements are always welcome β
.