graphql

Execute a GraphQL query or mutation

Executes a single GraphQL operation. The available operations cover users, mentors, matching, bookings, conversations, goals, reviews, surveys, and program analytics. Consult https://mentorly.com/developers for the full schema reference with per-operation descriptions, or https://mentorly.com/developers.md for a condensed markdown version.

post/graphql

Headers

X-Group-Idstring

Program (group) context for program-scoped queries. API-key requests fall back to the key's configured group when absent. Pass explicitly when the user belongs to more than one program.

Request body

querystring required

GraphQL query or mutation document.

operationNamestring

Name of the operation to execute when the document contains more than one.

variablesobject

Values for variables declared by the operation.

Response

GraphQL result. May contain data, errors, or both. Mutation payloads additionally expose errors: [String] and errorDetails: JSON fields for handled business-rule failures; content in those fields means the mutation did not succeed even though HTTP status is 200.

dataobject nullable

Result of the operation. Null or absent when the request failed before execution.

Changes

No recorded changes to this endpoint across all 1 revision of this API.