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

# Migration guide

> Migrating from the old Swagger to the unified MarIA API: route changes and webhook renaming

## Old Swagger → Unified API

| Old                             | New                                                        |
| ------------------------------- | ---------------------------------------------------------- |
| `GET /questionnaires`           | `GET /api/v1/questionnaires`                               |
| `POST /questionnaires`          | `POST /api/v1/questionnaires`                              |
| `GET /timeRanges`               | `GET /api/v1/scheduling/time-ranges`                       |
| `POST /timeRanges`              | `POST /api/v1/scheduling/time-ranges`                      |
| `GET /calls`                    | `GET /api/v1/calls`                                        |
| `POST /calls`                   | `POST /api/v1/calls/external-questionnaire`                |
| `GET /answers`                  | `GET /api/v1/questionnaire-status?externalId={externalId}` |
| `GET /transcripts`              | `GET /api/v1/calls/{id}`                                   |
| `ANSWER_UPDATED` (webhook)      | `voice.answer.updated`                                     |
| `CALL_STATUS_UPDATED` (webhook) | `voice.call.status.updated`                                |

<Info>
  Answers are included in the instance returned by `/api/v1/questionnaire-status`. Calls and transcripts are read from `/api/v1/calls`.
</Info>
