User guide: Dropea GraphQL API with Apollo

User guide: Dropea GraphQL API with Apollo

πŸ”Œ 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

  1. Go to My Account β†’ Access Tokens .
  2. Assign a name to your API Key ✏️.


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


  1. 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.
  1. 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

  1. Enter Apollo Studio .
  2. Click on the settings icon βš™οΈ.


  1. In the Endpoint field, enter:

  1. In Shared Headers , add the following:
 {
"x-api-key": "TU_API_KEY_AQUÍ"
}

  1. 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.
  1. 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 βœ….
    • Related Articles

    • User guide: Webhooks

      πŸ”— User Guide: Webhooks Our platform allows you to configure webhooks to receive automatic updates on key events related to your orders and incidents. πŸ“Œ What are they for? Webhooks allow you to keep your systems synchronized without the need for ...
    • Guide to setting up my Dropea account

      πŸš€ Where can I find a guide to start setting up my Dropea account? Once you log into your dropshipper account, you will find a guide with the first steps to set up your dropshipping account. πŸ“ Where to find it? The guide can be found in the My ...
    • Chatby Activation Guide

      πŸ€– Chatby Activation Guide Chatby allows you to boost your sales, confirm orders, and automatically resolve issues thanks to artificial intelligence. ▢️ Activation Guide: The following guide shows you how to activate Chatby step by step: View Chatby ...
    • Orders that are not displayed in Dropea

      πŸ” Why can't I see my orders on Dropea? If you are unable to view your orders in Dropea, please review the following possible causes and solutions. 🧹 Active filters You may have filters applied in the orders section. ❌ Filters may hide recent orders ...
    • What is dropea?

      πŸš€ What is Dropea? Dropea is a platform that connects suppliers with available inventory and dropshippers who want to market products without having to buy stock or manage logistics. Our goal is to facilitate communication, logistical coordination, ...