Skip to main content

Authenticate with the API

GraphQL supports two authentication modes:

ModeCoverageHeaderBest for
SRPFull GraphQL schemaAuthorization: Bearer <access-token>Complete integrations
API KeySupported subset onlyAuthorization: Bearer <api-key>Server-side automation and common send/read flows

SRP is the full-schema authentication method. API keys created in the Developer Portal can access a supported subset of GraphQL operations.

API Key Authentication

Create a GraphQL-enabled API key in the Developer Portal, then send it as a bearer token:

POST /graphql HTTP/1.1
Host: graphql.uk.legalesign.com
Content-Type: application/json
Authorization: Bearer ak_<environment>_<key-id>.<secret>

{"query": "{ user { id email } }"}

Check the API-key GraphQL reference and the auth badges on query and mutation reference pages before using an operation with an API key.

SRP Authentication

Use SRP when you need full GraphQL schema access.

API Credentials

To use SRP authentication, contact Legalesign support to obtain the credentials and details for your integration.

Export This Article

Save a copy of this page as PDF or plain text.