What you’ll learn:
- How to use the Metorial API
- How to get your API key
- How to make your first API request
What is the Metorial API?
The Metorial API is a simple, user-friendly way to interact with Metorial’s services. It uses standard web communication (REST) and always returns data in JSON format, making it easy to work with across different programming languages.Before You Begin: Getting Your API Key
To use the Metorial API, you’ll need an API key. You can generate these in two types: Publishable API Keys (metorial_pk_):
- Used for public data access
- Safe to use in client-side code
- Starts with
metorial_pk_
metorial_sk_):
- Provides full project access
- Must be kept private
- Starts with
metorial_sk_
You can generate both publishable and secret API keys in your Metorial dashboard by navigating to Developer → API Keys.

Making Your First API Request
When making a request, you’ll always use this base URL:API Resources
The Metorial API covers these resource groups: ProvidersGET/POST /provider-deployments— Create and manage provider deploymentsGET/POST /provider-configs— Manage provider configurationsGET/POST /provider-auth-configs— Manage stored credentials (OAuth tokens, API keys)GET/POST /provider-setup-sessions— Create OAuth/config authorization flows for usersGET /provider-versions— Browse available provider versionsGET /provider-specifications— View tools and auth methods for a provider version
POST /sessions— Create a session connected to one or more providersGET /session-connections— View connections within a sessionGET /session-messages— View tool calls and messagesGET /session-events— View session eventsGET /session-participants— View session participantsGET/POST /session-templates— Save and reuse session configurations
Client Libraries
We make integration super easy with official SDKs for:Important Things to Know
Rate Limits
We have some basic usage limits to keep things fair:- 1000 requests per IP every 10 seconds
- Development environments: 100 requests per 10 minutes
- Production environments: 5000 requests per 10 minutes
Handling Responses
Our API uses standard HTTP response codes:200: Success!400: Something’s wrong with your request401: Invalid API key403: Not enough permissions404: Can’t find what you’re looking for429: You’ve hit the rate limit
Pagination
When fetching lists of items, we support cursor-based pagination. Each response includeshas_more_before, has_more_after, and pagination cursors to help you fetch more items easily.
Need More Help?
Check out our full documentation or reach out to our support team. Happy coding!SDK Documentation
Explore SDKs for easier integration.