iMarioiMario
DocumentsAPI reference

Guides

API Overview and QuickstartAuthenticationSandbox and Test KeysAPI ErrorsPaginationIdempotent RequestsRate LimitsAPI VersioningWebhooks

Endpoints

All EndpointsWorkspaceAudiencesPeopleStudiesReportsLibraryFilesAuto StudiesConnectionsMembersAPI KeysWebhook Endpoints
Endpoints

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.

EndpointWhat it doesScope
GET /v1/workspaceRetrieve the key's workspaceworkspace:read
GET /v1/usageCredit balance and today's API budgetworkspace:read
GET /v1/credit-transactionsList credit transactionsworkspace:read

Audiences

List and read audiences, and build new ones: from a description, as a sub-group, or from your own files.

EndpointWhat it doesScope
GET /v1/audiencesList audiencesaudiences:read
POST /v1/audiencesCreate an audience from a descriptionaudiences:write
GET /v1/audiences/{id}Retrieve an audienceaudiences:read
POST /v1/audiences/{id}/subgroupsCreate a sub-group of an audienceaudiences:write
POST /v1/audiences/from-dataBuild an audience from your filesaudiences:write
POST /v1/audiences/{id}/rebuildRebuild an audience from its connected recordsaudiences:write

People

The people of an audience, one person's profile, and a direct conversation with them.

EndpointWhat it doesScope
GET /v1/audiences/{id}/peopleList an audience's peopleaudiences:read
GET /v1/people/{id}Retrieve a personaudiences:read
POST /v1/people/{id}/messagesSend a person a messagechat:write
GET /v1/people/{id}/messagesThis key's conversation with a personaudiences:read

Studies

Price and run a study, follow it, read its results and responses, and ask for the AI read of a group.

EndpointWhat it doesScope
POST /v1/studies/estimatePrice a studystudies:read
POST /v1/studiesRun a studystudies:write
GET /v1/studiesList studiesstudies:read
GET /v1/studies/{id}Retrieve a studystudies:read
POST /v1/studies/{id}/cancelCancel a study that has not startedstudies:write
GET /v1/studies/{id}/resultsRead a study's resultsstudies:read
GET /v1/studies/{id}/responsesList a study's responsesstudies:read
GET /v1/studies/{id}/segmentsList a study's segmentsstudies:read
POST /v1/studies/{id}/insightsRead what sets a group apartinsights:write

Reports

Write a report over one or more studies, read it, download it as PDF, PowerPoint or Markdown, and share it by link.

EndpointWhat it doesScope
POST /v1/reports/estimatePrice a report over a set of studiesreports:read
POST /v1/reportsWrite a report over one or more studiesreports:write
GET /v1/reportsList reports, newest firstreports:read
GET /v1/reports/{report_id}Retrieve a reportreports:read
POST /v1/reports/{report_id}/exportsExport a report as PDF, PowerPoint or Markdownreports:write
GET /v1/exports/{export_id}Retrieve an exportreports:read
POST /v1/reports/{report_id}/share-linksCreate a public link to a reportreports:write
GET /v1/reports/{report_id}/share-linksList a report's share linksreports:read
DELETE /v1/share-links/{share_link_id}Revoke a share linkreports:write

Library

Surveys, discussion guides and announcements saved in the Library, which a study can run by id.

EndpointWhat it doesScope
GET /v1/surveysList surveyslibrary:read
POST /v1/surveysCreate a surveylibrary:write
GET /v1/surveys/{survey_id}Retrieve a surveylibrary:read
PATCH /v1/surveys/{survey_id}Update a surveylibrary:write
DELETE /v1/surveys/{survey_id}Delete a surveylibrary:write
GET /v1/discussion-guidesList discussion guideslibrary:read
POST /v1/discussion-guidesCreate a discussion guidelibrary:write
GET /v1/discussion-guides/{guide_id}Retrieve a discussion guidelibrary:read
PATCH /v1/discussion-guides/{guide_id}Update a discussion guidelibrary:write
DELETE /v1/discussion-guides/{guide_id}Delete a discussion guidelibrary:write
GET /v1/announcementsList announcementslibrary:read
POST /v1/announcementsCreate an announcementlibrary:write
GET /v1/announcements/{announcement_id}Retrieve an announcementlibrary:read
PATCH /v1/announcements/{announcement_id}Update an announcementlibrary:write
DELETE /v1/announcements/{announcement_id}Delete an announcementlibrary:write

Files

Upload the images, videos and documents a study shows, and the data files an audience is built from.

EndpointWhat it doesScope
POST /v1/filesUpload a filelibrary:write
GET /v1/filesList files, newest firstlibrary:read
GET /v1/files/{file_id}Retrieve a filelibrary:read
DELETE /v1/files/{file_id}Delete a filelibrary:write

Auto Studies

Give iMario a goal: it plans the research, runs the studies and writes the report, within a budget you set.

EndpointWhat it doesScope
POST /v1/auto-studiesStart an auto studyauto:write
GET /v1/auto-studiesList auto studiesauto:read
GET /v1/auto-studies/{id}Retrieve an auto studyauto:read
POST /v1/auto-studies/{id}/guidanceSend the study a noteauto:write
POST /v1/auto-studies/{id}/stopStop an auto studyauto:write
POST /v1/auto-studies/{id}/continueContinue a paused auto studyauto:write

Connections

The workspace's connected data sources, what each offers now, and a new sync.

EndpointWhat it doesScope
GET /v1/connectionsList the workspace's connectionsconnections:read
GET /v1/connections/{id}/itemsWhat a connection offers nowconnections:read
POST /v1/connections/{id}/syncSync a connectionconnections:write

Members

List the workspace's members, invite people, change a role and remove a member. Owners and admins, live keys only.

EndpointWhat it doesScope
GET /v1/membersList membersmembers:read
POST /v1/members/invitationsInvite a membermembers:write
PATCH /v1/members/{id}Change a member's rolemembers:write
DELETE /v1/members/{id}Remove a membermembers:write

API Keys

List, make and revoke the workspace's API keys. Owners and admins; making and revoking need a live key.

EndpointWhat it doesScope
GET /v1/api-keysList API keyskeys:read
POST /v1/api-keysCreate an API keykeys:write
DELETE /v1/api-keys/{id}Revoke an API keykeys:write

Webhook Endpoints

The endpoints iMario sends events to, test events, signing secrets and the delivery log. Owners and admins.

EndpointWhat it doesScope
GET /v1/webhook-endpointsList webhook endpointswebhooks:read
POST /v1/webhook-endpointsCreate a webhook endpointwebhooks:write
GET /v1/webhook-endpoints/{endpoint_id}Retrieve a webhook endpointwebhooks:read
PATCH /v1/webhook-endpoints/{endpoint_id}Update a webhook endpointwebhooks:write
DELETE /v1/webhook-endpoints/{endpoint_id}Delete a webhook endpointwebhooks:write
POST /v1/webhook-endpoints/{endpoint_id}/testSend a test eventwebhooks:write
POST /v1/webhook-endpoints/{endpoint_id}/rotate-secretRotate the signing secretwebhooks:write
GET /v1/webhook-endpoints/{endpoint_id}/deliveriesList an endpoint's deliverieswebhooks:read
← WebhooksWorkspace →

On this page

WorkspaceAudiencesPeopleStudiesReportsLibraryFilesAuto StudiesConnectionsMembersAPI KeysWebhook Endpoints