Docly

WordPress database error: [Table 'wp_stemmadocs.wp_eazydocs_view_log' doesn't exist]
SELECT count FROM wp_eazydocs_view_log WHERE post_id = '5649' AND created_at = '2023-05-31' /* From [docs.stemma.ai/docs/stemma/using-stemma/using-the-external-graphql-api/] in [/nas/content/live/stemmadocs/wp-content/plugins/eazydocs/includes/Frontend/post-views.php:42] */

WordPress database error: [Table 'wp_stemmadocs.wp_eazydocs_view_log' doesn't exist]
SHOW FULL COLUMNS FROM `wp_eazydocs_view_log` /* From [docs.stemma.ai/docs/stemma/using-stemma/using-the-external-graphql-api/] in [/nas/content/live/stemmadocs/wp-content/plugins/eazydocs/includes/Frontend/post-views.php:47] */

Using the External GraphQL API

Estimated reading: 1 minute

Creating and Installing an API Key for the External GraphQL API

1. Create an API key in the Stemma UI:

a. Navigate to the Admin panel and choose Add API Key:

b. In the pop-up window, enter a name for your API key and click Submit. You can choose any name, but Stemma recommends using a name that describes the intended use of the key (e.g., github action integration):

Stemma generates an API key that appears in the window. Save this key somewhere secure. It is not recoverable.

2. Install a GraphQL Client such as Altair:

(Note: We like using Altair, but any GraphQL client should work.)

3. Add your API key to Altair as an Authorization header.

864

It must be in the form Bearer <api key> with a space between the word Bearerand your API key.

4. Enter your URL and HTTP method:

  • URL = /graphql
    E.g., https://preview.stemma.ai/graphql
  • HTTP method = POST

Now click Docs in the upper right of the Altair UI; you should see the graphql schema on the right hand side:864