Introduction

Base URL: https://m8tes.ai/api/v2

All requests require an API key in the Authorization header. API keys use the m8_ prefix.

Authorization: Bearer m8_your_key_here
Python

Get your API key from the Developer dashboard.

Authentication

Create or rotate an API key with POST /api/v2/token. That endpoint returns a new API key and invalidates the previous one, so update your stored secret immediately after calling it.

Resources

The API is organized around these resources:

ResourceDescription
TeammatesReusable personas with instructions and tools
RunsTask executions that stream Server-Sent Events
TasksReusable job definitions with triggers (schedule, webhook, email)
AppsAvailable tools and OAuth integrations
MemoriesEnd-user memory management
PermissionsTool allow-lists for end-users
UsersEnd-user profiles for multi-tenant apps
SettingsAccount-level feature configuration
UsageBilling usage, run counts, and account limits
WebhooksEvent notification subscriptions

Usage

Inspect your current plan, usage, and limits with GET /api/v2/usage or client.auth.get_usage().

All list endpoints use cursor-based pagination. All errors follow a standard format.