All Endpoints
Every endpoint of the iMario API by group, with the scope each one needs.
The base URL is https://api.imario.ai/v1, and the paths below include the /v1. Every call takes a key in Authorization: Bearer <key> (Authentication). Requests and responses are JSON; a failed call answers with the error object.
The pages are generated from the API's OpenAPI document, which is also served at https://api.imario.ai/v1/openapi.json for code generators and API clients.
Workspace
The key's workspace, its credit balance, today's API budget and the credit ledger.
| Endpoint | What it does | Scope |
|---|---|---|
GET /v1/workspace | Retrieve the key's workspace | workspace:read |
GET /v1/usage | Credit balance and today's API budget | workspace:read |
GET /v1/credit-transactions | List credit transactions | workspace:read |
Audiences
List and read audiences, and build new ones: from a description, as a sub-group, or from your own files.
| Endpoint | What it does | Scope |
|---|---|---|
GET /v1/audiences | List audiences | audiences:read |
POST /v1/audiences | Create an audience from a description | audiences:write |
GET /v1/audiences/{id} | Retrieve an audience | audiences:read |
POST /v1/audiences/{id}/subgroups | Create a sub-group of an audience | audiences:write |
POST /v1/audiences/from-data | Build an audience from your files | audiences:write |
POST /v1/audiences/{id}/rebuild | Rebuild an audience from its connected records | audiences:write |
People
The people of an audience, one person's profile, and a direct conversation with them.
| Endpoint | What it does | Scope |
|---|---|---|
GET /v1/audiences/{id}/people | List an audience's people | audiences:read |
GET /v1/people/{id} | Retrieve a person | audiences:read |
POST /v1/people/{id}/messages | Send a person a message | chat:write |
GET /v1/people/{id}/messages | This key's conversation with a person | audiences:read |
Studies
Price and run a study, follow it, read its results and responses, and ask for the AI read of a group.
| Endpoint | What it does | Scope |
|---|---|---|
POST /v1/studies/estimate | Price a study | studies:read |
POST /v1/studies | Run a study | studies:write |
GET /v1/studies | List studies | studies:read |
GET /v1/studies/{id} | Retrieve a study | studies:read |
POST /v1/studies/{id}/cancel | Cancel a study that has not started | studies:write |
GET /v1/studies/{id}/results | Read a study's results | studies:read |
GET /v1/studies/{id}/responses | List a study's responses | studies:read |
GET /v1/studies/{id}/segments | List a study's segments | studies:read |
POST /v1/studies/{id}/insights | Read what sets a group apart | insights:write |
Reports
Write a report over one or more studies, read it, download it as PDF, PowerPoint or Markdown, and share it by link.
| Endpoint | What it does | Scope |
|---|---|---|
POST /v1/reports/estimate | Price a report over a set of studies | reports:read |
POST /v1/reports | Write a report over one or more studies | reports:write |
GET /v1/reports | List reports, newest first | reports:read |
GET /v1/reports/{report_id} | Retrieve a report | reports:read |
POST /v1/reports/{report_id}/exports | Export a report as PDF, PowerPoint or Markdown | reports:write |
GET /v1/exports/{export_id} | Retrieve an export | reports:read |
POST /v1/reports/{report_id}/share-links | Create a public link to a report | reports:write |
GET /v1/reports/{report_id}/share-links | List a report's share links | reports:read |
DELETE /v1/share-links/{share_link_id} | Revoke a share link | reports:write |
Library
Surveys, discussion guides and announcements saved in the Library, which a study can run by id.
| Endpoint | What it does | Scope |
|---|---|---|
GET /v1/surveys | List surveys | library:read |
POST /v1/surveys | Create a survey | library:write |
GET /v1/surveys/{survey_id} | Retrieve a survey | library:read |
PATCH /v1/surveys/{survey_id} | Update a survey | library:write |
DELETE /v1/surveys/{survey_id} | Delete a survey | library:write |
GET /v1/discussion-guides | List discussion guides | library:read |
POST /v1/discussion-guides | Create a discussion guide | library:write |
GET /v1/discussion-guides/{guide_id} | Retrieve a discussion guide | library:read |
PATCH /v1/discussion-guides/{guide_id} | Update a discussion guide | library:write |
DELETE /v1/discussion-guides/{guide_id} | Delete a discussion guide | library:write |
GET /v1/announcements | List announcements | library:read |
POST /v1/announcements | Create an announcement | library:write |
GET /v1/announcements/{announcement_id} | Retrieve an announcement | library:read |
PATCH /v1/announcements/{announcement_id} | Update an announcement | library:write |
DELETE /v1/announcements/{announcement_id} | Delete an announcement | library:write |
Files
Upload the images, videos and documents a study shows, and the data files an audience is built from.
| Endpoint | What it does | Scope |
|---|---|---|
POST /v1/files | Upload a file | library:write |
GET /v1/files | List files, newest first | library:read |
GET /v1/files/{file_id} | Retrieve a file | library:read |
DELETE /v1/files/{file_id} | Delete a file | library:write |
Auto Studies
Give iMario a goal: it plans the research, runs the studies and writes the report, within a budget you set.
| Endpoint | What it does | Scope |
|---|---|---|
POST /v1/auto-studies | Start an auto study | auto:write |
GET /v1/auto-studies | List auto studies | auto:read |
GET /v1/auto-studies/{id} | Retrieve an auto study | auto:read |
POST /v1/auto-studies/{id}/guidance | Send the study a note | auto:write |
POST /v1/auto-studies/{id}/stop | Stop an auto study | auto:write |
POST /v1/auto-studies/{id}/continue | Continue a paused auto study | auto:write |
Connections
The workspace's connected data sources, what each offers now, and a new sync.
| Endpoint | What it does | Scope |
|---|---|---|
GET /v1/connections | List the workspace's connections | connections:read |
GET /v1/connections/{id}/items | What a connection offers now | connections:read |
POST /v1/connections/{id}/sync | Sync a connection | connections:write |
Members
List the workspace's members, invite people, change a role and remove a member. Owners and admins, live keys only.
| Endpoint | What it does | Scope |
|---|---|---|
GET /v1/members | List members | members:read |
POST /v1/members/invitations | Invite a member | members:write |
PATCH /v1/members/{id} | Change a member's role | members:write |
DELETE /v1/members/{id} | Remove a member | members:write |
API Keys
List, make and revoke the workspace's API keys. Owners and admins; making and revoking need a live key.
| Endpoint | What it does | Scope |
|---|---|---|
GET /v1/api-keys | List API keys | keys:read |
POST /v1/api-keys | Create an API key | keys:write |
DELETE /v1/api-keys/{id} | Revoke an API key | keys:write |
Webhook Endpoints
The endpoints iMario sends events to, test events, signing secrets and the delivery log. Owners and admins.
| Endpoint | What it does | Scope |
|---|---|---|
GET /v1/webhook-endpoints | List webhook endpoints | webhooks:read |
POST /v1/webhook-endpoints | Create a webhook endpoint | webhooks:write |
GET /v1/webhook-endpoints/{endpoint_id} | Retrieve a webhook endpoint | webhooks:read |
PATCH /v1/webhook-endpoints/{endpoint_id} | Update a webhook endpoint | webhooks:write |
DELETE /v1/webhook-endpoints/{endpoint_id} | Delete a webhook endpoint | webhooks:write |
POST /v1/webhook-endpoints/{endpoint_id}/test | Send a test event | webhooks:write |
POST /v1/webhook-endpoints/{endpoint_id}/rotate-secret | Rotate the signing secret | webhooks:write |
GET /v1/webhook-endpoints/{endpoint_id}/deliveries | List an endpoint's deliveries | webhooks:read |