# Migrate from the legacy snapAddy API

The [legacy API documentation](/legacy/) is unmaintained and may contain inaccurate information.

Use this map if your integration calls the legacy REST API at `api.snapaddy.com`. Current requests use `https://backend.snapaddy.com`. The collections listed here use a [personal API token](/authentication/#personal-api-token) in `x-api-key`. Update the base URL, method, request fields, and response handling together.

## Contacts REST

Legacy paths below start at `/grabber/v1`. [Work with contact items](/contacts/contact-items/)

**Discover lists**

- Legacy: `GET /contactlist`
- Current: [`GET /contact/v1/contact-list/user`](/reference/contacts/#GET/v1/contact-list/user) returns the lists the authenticated user can access.

**Count contacts**

- Legacy: `GET /contactlist/{listId}/count`
- Current: [`GET /contact/v1/contact-list/{contactListId}/contact-item-count`](/reference/contacts/#GET/v1/contact-list/{contactListId}/contact-item-count) returns `count`.

**Page through contacts**

- Legacy: `GET /contactlist/{listId}/contactitems`
- Current: [`GET /contact/v1/contact-list/{contactListId}/contact-items`](/reference/contacts/#GET/v1/contact-list/{contactListId}/contact-items) returns a page of items.

**Create a contact**

- Legacy: `POST /contactitem`
- Current: [`POST /contact/v1/contact-item`](/reference/contacts/#POST/v1/contact-item) with `contactListId` in the JSON body.

**Read a contact**

- Legacy: `GET /contactitem/{itemId}`
- Current: [`GET /contact/v1/contact-item/{contactItemId}`](/reference/contacts/#GET/v1/contact-item/{contactItemId}).

**Update contact fields**

- Legacy: `PUT /contactitem/{itemId}`
- Current: [`PATCH /contact/v1/contact-item/{contactItemId}`](/reference/contacts/#PATCH/v1/contact-item/{contactItemId}) with the fields to update.

**Delete a contact**

- Legacy: `DELETE /contactitem/{itemId}`
- Current: [`DELETE /contact/v1/contact-item/{contactItemId}`](/reference/contacts/#DELETE/v1/contact-item/{contactItemId}).

**Download an attachment**

- Legacy: `GET /attachment/{contactItemId}/{attachmentId}`
- Current: [Get the item](/reference/contacts/#GET/v1/contact-item/{contactItemId}) and use the signed URLs in `attachmentsUrls`.

## Organization REST

Legacy paths below start at `/organization/v1`. [Find users and check license access](/platform/organization-users/)

**Check license access**

- Legacy: `GET /me`
- Current: [`GET /user/v1/me/license-permissions-per-organization`](/reference/organization-users/#GET/v1/me/license-permissions-per-organization) lists the authenticated user’s license access by organization.

**Find organization members**

- Legacy: `GET /usernames`
- Current: [`GET /user/user-management/find-users`](/reference/organization-users/#GET/user-management/find-users) lists users in the current organization, with pagination. It requires an organization administrator account. Expect a different response shape.

## VisitReport REST

Legacy paths below start at `/visitreport/v1`. [Manage events](/visitreport/events/) · [Work with reports and participants](/visitreport/reports/)

**List events**

- Legacy: `GET /backend/questionnaires/all`
- Current: [`GET /questionnaire/v1/questionnaire-management/find-questionnaires`](/reference/visitreport-events/#tag/events/GET/v1/questionnaire-management/find-questionnaires) to page through events.

**Read an event**

- Legacy: `GET /backend/questionnaires/{questionnaireId}`
- Current: [`GET /questionnaire/v1/{questionnaireId}`](/reference/visitreport-events/#tag/events/GET/v1/{questionnaireId}) for event settings and question groups.

**List report participants**

- Legacy: `GET /backend/questionnaires/{questionnaireId}/participants/all`
- Current: [`POST /questionnaire/v1/{questionnaireId}/reports/grid-view`](/reference/visitreport-reports/#POST/v1/{questionnaireId}/reports/grid-view) for paginated report participant rows.

**Read a question group**

- Legacy: `GET /group/{groupId}`
- Current: [`GET /questionnaire/v1/question-group/{questionGroupId}`](/reference/visitreport-questionnaire/#GET/v1/question-group/{questionGroupId}).

**Read a question**

- Legacy: `GET /question/{questionId}`
- Current: [`GET /questionnaire/v1/question/{questionId}`](/reference/visitreport-questionnaire/#GET/v1/question/{questionId}).

**Find an answer option for a question**

- Legacy: `GET /questionOption/{questionOptionId}`
- Current: [Get the parent question](/reference/visitreport-questionnaire/#GET/v1/question/{questionId}) and select the option by ID in `questionOptions`. If you only know the option ID, locate it in the [event’s questionnaire structure](/reference/visitreport-events/#tag/events/GET/v1/{questionnaireId}).

**Find a participant’s report**

- Legacy: `GET /participant/{participantId}`
- Current: Pass the participant ID to [`GET /questionnaire/v1/report/{reportId}`](/reference/visitreport-reports/#GET/v1/report/{reportId}) to resolve the containing report, then select that ID in `participants`. Use the returned report ID for subsequent report-level requests.

**Find a recorded answer or selected option**

- Legacy: `GET /answer/{answerId}` and `GET /answerOption/{answerOptionId}`
- Current: [Read the containing report](/reference/visitreport-reports/#GET/v1/report/{reportId}) and match `answers[].id` or `answers[].answerOptions[].id`. Store the report ID alongside each answer ID when syncing.

**Download a report attachment**

- Legacy: `GET /attachment/{questionnaireId}/{participantId}/{attachmentId}`
- Current: Discover files from the [report snapshot](/reference/visitreport-reports/#GET/v1/report/{reportId}/download)’s `files[].publicUrlPath`. The returned path can still use the legacy file-serving route. Download the file from the returned path.

## Outbound exports

For VisitReport, use a DataAgents workflow to process exported reports. Contacts can send exported records to an HTTPS receiver.

- [Configure a Contacts export webhook](/contacts/webhooks/)
- [Add a DataAgents workflow to a VisitReport event](https://portal.snapaddy.com/knowledge/how-do-i-add-a-workflow-to-a-visitreport-event)
