Getting started

In this article:


    Attention   

     

    Endpoint

    The GraphQL API has a single endpoint:

    POST https://shop99999.mywebshop.io/api/graphql
    

    (Replace "shop99999" with your own shop number)

     

    Authentication

    For more information about setting up authentication for your shop, see Authentication.

     

    Query the API

    You can access the GraphQL API endpoint using cURL or any other HTTP client. For the following examples, make sure to replace with your store’s domain and with the token you generated in the Authentication section.

     

    curl

    To make a query to the using curl, send a POST request with your query as the JSON payload.

    curl -X POST \
    "https://shop99999.mywebshop.io/api/graphql" \
    -H "Content-Type: application/graphql" \
    -H "Authorization: Bearer " \
    -d '
    {
      query {
        orders {
          data {
            id
            languageISO
            siteId
          }
        }
      }
    }
    '
    

     

    Additional resources