Authenticate
The API base URL ishttps://api.glasser.ai. Requests to /v1 need a Key. Create one in
Keys and set it as GLASSER_API_KEY in your environment.
Send it in the Authorization: Bearer header.
Check your connection with this free balance request:
Rate limits
Our current rate limit is 600 requests per minute per API key, per API route.Browse Providers and Endpoints
List Providers and Endpoints withGET /public/catalog. This free, public request needs no Key and returns the
full list in one response: providers describes each Provider; entries
lists its Endpoints and display prices.
Use it to choose an Endpoint during development or build a Provider picker.
The list is cached and does not apply your Key’s Policy. Inspect your chosen
Endpoint with your Key for its schema and current Price.
Search, inspect, run
- Search Endpoints. Find data for your task.
Use
queryfor search terms, such ascompany enrichment, and include the requireduse_case, such asCreate a company profile for glasser.ai. Results identify the Provider, Endpoint, and Endpoint version, with its Price. - Inspect the Endpoint. Read its
input_schema, sample input, and Price, including the charge rules for each outcome. Use this schema to build the Provider’s input. - Run the Endpoint. Send the selected
providerandendpoint, with the input you built, toPOST /v1/runs. This creates a Run and retrieves the data under that Endpoint’s charge rules.
Idempotency-Key
header. Keep the same value when retrying the same request; use a new value for
a new execution.
Read the result
A data request returns a Run. Read these fields before using the result:
A Run can return HTTP
200 with status: "COMPLETED" even when the Provider
rejects the request. In that case, output is null; read the Provider’s status
and error body from provider_response. Run lists contain summaries only; use
Get a Run for the full error details.
Retrying a completed Run with the same Idempotency-Key and input returns the
same result without another Provider call. Use a new key for another attempt,
including a request with revised input.
See How It Works for Run states, pricing, and retries.
Solutions for common tasks
Solutions offer a shorter path for common requests. For example,company_intelligence accepts a domain, then Glasser selects an Endpoint and
converts the input for its Provider. Use this when the available Glasser parameters
cover your task. It uses the same Key and balance and returns an ordinary Run.
See Solutions overview for the available
capabilities, Provider selection, and charges.