Skip to content

API overview

Connect Preimage to your own tools to retrieve site data, monitor scans, and automate project workflows.

Choose an API

GraphQLREST v2
Best suited toReading related workspace data in a single queryResource-based workflows, including project and scan management
Endpointhttps://api.preimage.ai/public/v1/graphqlhttps://api.preimage.ai/v2
AuthenticationWorkspace API key in x-api-keyBearer token in Authorization
ReferenceQueries and examplesSwagger endpoint explorer

These APIs use different credentials. A GraphQL workspace API key is not a REST bearer token. Access to operations depends on your workspace, role, and enabled features.

Get access

For GraphQL, use the API key for the workspace you want to query. For REST access and token setup, contact support@preimage.ai with your intended workflow and workspace.

Keep API keys and bearer tokens in your server-side environment. Do not include them in public frontend code or shared examples.