Environments
You must login with your API key and secret before issuing other requests to the API.
Use the follow mutation to do login:
mutation docsApiLogin($key: String!, $secret: String!) {
apiLogin(key: $key, secret: $secret) {
status
accessToken
accessTokenExpiresIn
}
}Together with the variables key and secret:
{ "key": "pk_...", "secret": "sk_..." }info
Don't hard-code the key and secret onto the query because it may be leaked in logs (be it ours or yours!).
Production
GraphQL API endpoint:
https://connect-api.greyfinch.com/v1/graphqlCredentials: See this section on how to get your credentials.
Demo
GraphQL API endpoint:
https://connect-api.demo.greyfinch.com/v1/graphqlUser Credentials:
key:
pk_user_keysecret:
sk_user_secret
Client Credentials:
key:
pk_client_keysecret:
sk_client_secret
Was this helpful?
Was this helpful?