If you’re used to REST APIs, GraphQL has a few key differences worth knowing before you start. This page covers the essentials so you can make your first request quickly.Documentation Index
Fetch the complete documentation index at: https://docs.wisdom.ai/llms.txt
Use this file to discover all available pages before exploring further.
One endpoint, one method
Unlike REST, which uses many endpoints (GET /users, POST /dashboards, etc.), GraphQL uses a single endpoint for all operations:
| Field | Description |
|---|---|
query | The GraphQL operation (query or mutation) as a string |
variables | A JSON object with input values referenced in the query |
HTTP 200 does not mean success
This is the most important difference from REST. GraphQL can return HTTP 200, even when the operation fails. Do not check the HTTP status code to determine success, always inspect the response body. Errors appear in anerrors array:
status.code field in the response data:
Postman setup
To call the WisdomAI GraphQL API from Postman:- Set method to POST
- URL:
https://{ACCOUNT}.askwisdom.ai/graphql - Headers:
Content-Type: application/jsonAuthorization: Bearer <your_token>
- Body → raw → JSON:
Common mistakes
| Mistake | Fix |
|---|---|
Missing Content-Type: application/json | Always include this header — without it, the server can’t parse the body |
| Sending the query as a URL parameter | GraphQL queries go in the POST body, not the URL |
| Not requesting return fields on mutations | Include status { code message } (or other fields) in your mutation or they won’t be returned |
| Checking HTTP status for errors | Always read the response body. GraphQL returns HTTP 200 even on failure |
Related articles
GraphQL API overview
Endpoint, authentication, and error handling
User management
Create, update, and manage users via API
Queries
Available read operations
Mutations
Available write operations