Authentication

Authentication is done via shared keys - to generate your API keys

  1. Login to PartsPal (or create an account from: http://partspal.partly.com/)
  2. Go to "Settings" -> "Developer Options" -> "API Keys" then click "Generate Keys"
  3. Click "Copy key"

You now have your permanent API key for authenticating your app.

Testing environment

To begin testing:

  1. Go to https://api.partly.com/node-api/graphql
  2. Click the "HTTP HEADERS" tab at the bottom left of the screen
  3. Paste the following code in "HTTP HEADERS" tab down the bottom, but use your own public key:
{
    "x-api-key":"paste public key here"
}

Example query

Finally, to search for your first part add the query below, and click "Play" button.

{
  gapc {  
  	search_gapc_parts(query: "0 190 350 049") {
      items {
        name
        description
        fitted_uvdb_vehicle_definitions {
          items {
            name
            uvdb_make {
              name
            }
            uvdb_models {
              name
            }
          }
        }
        gapc_part_type {
          id
          name
        }
        interchange {
          items {
            name
            mpn
            gapc_brand {
              id
              name
            }
          }
        }
      }
      
    }
  }
}