All API tools
DevOps & Config
GraphQL Schema Mock Generator API
GET
/v1/graphql-mock-generator Free tier1 credit / callAuthentication
Send your API key as a bearer token. Create one free in the dashboard.
Authorization: Bearer $TOOLSXPO_KEYParameters
Passed as query-string parameters. Example values shown.
| Name | Example |
|---|---|
| schema | {"type":"object"} |
| rootType | User |
Example request
curl "https://api.toolsxpo.com/v1/graphql-mock-generator?schema=%7B%22type%22%3A%22object%22%7D&rootType=User" \
-H "Authorization: Bearer $TOOLSXPO_KEY"Response
A standard JSON envelope: { ok, data, meta }. The result is in data (text); meta.credits reports what the call cost.