1. Home
  2. Docs
  3. GraphQL API
  4. Authentication

Authentication

Getting started

GraphQL

Our API is exposed through GraphQL endpoints, queries and mutations. All requests are perfomed against a unique endpoint:

curl -XPOST https://me.instaply.com/graphql \
    -H 'Authentication-Token:${PERSONAL_ACCESS_TOKEN}' \
    -H 'Content-Type: application/json' -d'
{
    "query": "{ 
        query ($name: String!) {
            greeting(name: $name) {
                greeting
            }    
        } 
    }",
    "variables": {
        "name": "world"
    }
}'

Authentication

In order to access protected resources, you need a personnal access token. Please contact Gerard Espona to obtain it.

Personal access tokens are equivalent to a user name and password, please keep it in a secure place.

If compromised, please contact us to revoke it.

This personnal access token is referred as ${PERSONAL_ACCESS_TOKEN} in this documentation.