> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getversive.com/llms.txt
> Use this file to discover all available pages before exploring further.

# API introduction

> Authentication, conventions, and errors for the Versive public API

The Versive public API (v1) lets you manage studies, questions, logic, interviews, translations, and insights programmatically. Typical uses: creating interviews with tracked links from your own app, syncing study content from your systems, building studies with the AI agent, and pulling interview transcripts and summaries into your data warehouse.

## Base URL

```
https://api.getversive.com/api/v1
```

The machine-readable OpenAPI document is available at:

```
https://api.getversive.com/api/v1/openapi.json
```

Use the OpenAPI document for code generation and agent tool discovery. The pages in this reference add examples,
authorization context, and product guidance that are not represented fully in the schema.

## Authentication

Public REST integrations use an organization **API key** passed as a Bearer token:

```bash theme={null}
curl https://api.getversive.com/api/v1/studies \
  -H "Authorization: Bearer $VERSIVE_API_KEY"
```

The API is available to organizations on the Enterprise plan; [talk to sales](https://www.getversive.com/demo?intent=enterprise\&source=docs_api) to get access. API keys are created in your organization settings (**Organization → API keys**) by an owner or admin. Each key is scoped to one organization and grants full API access to that organization's data — there are no per-key scopes, so treat keys like passwords: store them in a secrets manager, never in client-side code, and deactivate keys you no longer use.

A missing or invalid bearer credential returns `401` with `{"detail": "Invalid authentication credentials"}`.

The same public API routes also accept short-lived, scoped JWTs issued for authenticated
[Versive MCP server](https://docs.getversive.com/mcp/overview.md) sessions. Each MCP connection is granted `studies:read`, `interviews:read`,
`studies:write`, `interviews:write`, and `media:read` at consent time (or a narrower set if the client requests one); `media:read` unlocks
[interview media](https://docs.getversive.com/api-reference/interviews/get-interview-media.md) as time-limited links. Those scopes are an upper bound:
organization roles and study access policies are still checked on every request. MCP clients manage these credentials
automatically; do not copy MCP access tokens into direct REST API integrations.

## Conventions

* **JSON everywhere** — request bodies are JSON (`Content-Type: application/json`); one endpoint ([Update question](https://docs.getversive.com/api-reference/questions/update-question.md)) also accepts `multipart/form-data` for file uploads.
* **IDs are UUID strings.**
* **Organization scoping is automatic** — the key determines the organization; requesting a resource that belongs to another organization returns `403`.
* **Partial updates** — `PUT` endpoints only change the fields you send. On studies, the `config` object is *merged* into the existing config rather than replaced.
* **Pagination is endpoint-specific** — list studies currently returns all matching records, while `GET /interviews?study_id=...` supports `page` and `page_size`. Check each endpoint's parameters before assuming either behavior.

## Rate limits and retries

Versive does not currently publish numeric request-rate limits for the public API. Clients should keep concurrency
bounded and retry transient `5xx` responses with exponential backoff and jitter. If the API edge returns `429`, treat it
as transient and honor `Retry-After` when present. Do not retry validation, authentication, or authorization failures
without changing the request.

See [Versioning and compatibility](https://docs.getversive.com/api-reference/versioning.md) for the public API lifecycle and deprecation signals.

## Errors

Errors use conventional HTTP status codes with a JSON body:

```json theme={null}
{ "detail": "Study not found" }
```

| Status | Meaning |
| - | - |
| `400` | Invalid request — missing/invalid parameters or values. |
| `401` | Missing or invalid bearer credential. |
| `403` | The resource belongs to a different organization. |
| `404` | Resource not found. |
| `429` | The API edge rejected excess traffic — retry with backoff and honor `Retry-After` when present. |
| `422` | Validation failed — e.g. invalid `{{Q:...}}` question references; the body includes an `errors` array. |
| `500` | Internal server error. |

## Resources

> [card] [Studies](https://docs.getversive.com/api-reference/studies/create-study.md)
>
> Create, list, update, translate, and AI-edit studies; read response metrics.

> [card] [Questions](https://docs.getversive.com/api-reference/questions/list-questions.md)
>
> Read, batch-create/update, and delete a study's questions.

> [card] [Question logic](https://docs.getversive.com/api-reference/question-logic/list-question-logic.md)
>
> Manage conditional branching rules.

> [card] [Interviews](https://docs.getversive.com/api-reference/interviews/create-interview.md)
>
> Create tracked participant links and read interview transcripts and status.

> [card] [Insights](https://docs.getversive.com/api-reference/insights/get-insights.md)
>
> Fetch AI-generated interview summaries.

> [card] [Translations](https://docs.getversive.com/api-reference/translated-questions/list-translated-questions.md)
>
> Trigger and manage study translations.

> [card] [Folders](https://docs.getversive.com/api-reference/folders/create-folder.md)
>
> Create and list folders for organizing studies.

> [card] [Webhooks](https://docs.getversive.com/api-reference/webhooks.md)
>
> Receive an event when an interview is completed or a participant is screened out.

> [card] [Versioning](https://docs.getversive.com/api-reference/versioning.md)
>
> Understand compatibility guarantees and deprecation signals.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.