Rize uses API keys in the Authorization header for authentication. You can generate an API key in Settings > API.

  1. Head to Settings > API and click “Generate New Key”

image.png

  1. Select expiration and click “Generate”.

image.png

  1. Copy key and save in a secure location.

image.png

  1. You’ll see key listed in Settings > API.

image.png

  1. Set the Authorization Header in your POST requests to https://api.rize.io/api/v1/graphql
{
	"Authorization": "Bearer YOUR_API_KEY"
}
  1. Curl Example:
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 } }"}'

With a successful response:

{"data":{"currentUser":{"email":"[email protected]"}}}
  1. Head to GraphQL Playground at https://api.rize.io/api/v1/graphiql

image.png

  1. Click on Headers tab and set your Authorization header.

image.png