Accessing Rize's GraphQL API
Generating an API Key
Rize uses API keys in the Authorization header for authentication. You can generate an API key in Settings > API.
You can also delete any API keys you have generated from here.
info
After generating an API Key, the key will be listed here, but it will only be displayed as a partially masked value.

Setting the Authorization Header
Add your API key to the Authorization Header in your POST requests to https://api.rize.io/api/v1/graphql.
{
"Authorization": "Bearer YOUR_API_KEY"
}
Example
CURL request
curl -X POST https://api.rize.io/api/v1/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{"query": "query CurrentUser { currentUser { email } }"}'SuccessfulResponse
{"data":{"currentUser":{"email":"youremail@domain.com"}}}
You can try this from the GraphQL Playground at https://api.rize.io/api/v1/graphiql.
- Click the Headers tab and set your Authorization Header.
- Click the "Play" button to run the request.
