---
title: "Migrate from Auth0"
method: POST
path: "/resources/migrations/v1/auth0"
tags: ["Data migration"]
---

# Migrate from Auth0

`POST /resources/migrations/v1/auth0`

## Request

- Base URL: `http://localhost:8181`
- URL: `http://localhost:8181/resources/migrations/v1/auth0`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/frontegg/apis/entitlements-agent-pdp/docs/resources/migrations/v1/auth0/post.ts> (a function with typed inputs; its response is checked against the schema)

This route enables you to migrate your users from Auth0 to Frontegg easily. Add the Domain, Client ID, Secret and the tenant’s ID Field Name - they’ll be found on Auth0 and the migration will be as smooth as possible.

## Request body

- Auth0Configuration
  - `domain` string, required
  - `clientId` string, required
  - `secret` string, required
  - `tenantIdFieldName` string, required: The field name that the tenant ID will be taken from under app metadata
  - `isTenantIdOnUserMetadata` boolean: If you would like to take tenant ID from user metadata, set this field to true

## Response `201`

---

[API](https://skmtc.dev/frontegg/apis/entitlements-agent-pdp.md) - [All operations](https://skmtc.dev/frontegg/apis/entitlements-agent-pdp/llms.txt) - [OpenAPI document](https://skmtc.dev/frontegg/apis/entitlements-agent-pdp/revisions/c496ae9e1c3e?raw)
