Skip to Content
Docs
API referenceManagement API

Migration sources

List migration sources

GET
/authn/migration-sources

The instance's migration sources, newest first. Needs sys:migration:read on the instance root, held by the instance's owners and admins only.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Query Parameters

page?integer

Page number

limit?integer

Items per page, 1 to 100

Response Body

OK

application/json
  1. response
data?array<>
object?string
pagination?

Pagination is the page answered (api-route-review D9).

Example Request
curl -X GET 'https://api.us.pontive.com/v1/authn/migration-sources'
Example Response
{  "data": [    {      "created_at": "string",      "hash_config": {        "firebase_scrypt": {          "mem_cost": 0,          "rounds": 0,          "salt_separator": "string",          "signer_key": "string",          "signer_key_preview": "string"        }      },      "id": "string",      "imported_passwords": 0,      "name": "string",      "object": "string",      "source_type": "auth0",      "updated_at": "string"    }  ],  "object": "string",  "pagination": {    "limit": 0,    "page": 0,    "total": 0,    "total_pages": 0  }}

Create migration source

POST
/authn/migration-sources

Register a system the instance's users are leaving (pontive-spec 46 §3): its name, its source_type (which picks defaults and the guide, and decides nothing on its own), and the parameters its password hashes need. A Firebase project's hashes need hash_config.firebase_scrypt: the signer key (base64, write-only: answered as a four-character preview), the salt separator (base64), rounds and mem_cost (1 to 16), from the Firebase console's password hash parameters. A source owns the legacy identities its imports write, by which a re-sent row matches the user it created. At most 10 per instance. Needs sys:migration:manage on the instance root, held by the instance's owners and admins only and never by a token acting for a user.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Request Body

Source

application/json
  1. body

Source

hash_config?
name?string
source_type?string
Value in"auth0""clerk""supabase""lovable_cloud""firebase""cognito""nextauth""better_auth""replit_auth""other"

Response Body

Created

application/json
  1. response
created_at?string
hash_config?
id?string
imported_passwords?integer

ImportedPasswords counts the users whose imported hash still needs this source: they have not signed in since.

name?string
object?string
source_type?string
Value in"auth0""clerk""supabase""lovable_cloud""firebase""cognito""nextauth""better_auth""replit_auth""other"
updated_at?string
Example Request
curl -X POST 'https://api.us.pontive.com/v1/authn/migration-sources' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "created_at": "string",  "hash_config": {    "firebase_scrypt": {      "mem_cost": 0,      "rounds": 0,      "salt_separator": "string",      "signer_key": "string",      "signer_key_preview": "string"    }  },  "id": "string",  "imported_passwords": 0,  "name": "string",  "object": "string",  "source_type": "auth0",  "updated_at": "string"}

Get migration source

GET
/authn/migration-sources/{migration_source_id}

The source, its signer key as a preview, and imported_passwords: how many users still sign in with a hash that needs it. Needs sys:migration:read on the instance root.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

migration_source_id*string

Migration source ID (msrc_)

Response Body

OK

application/json
  1. response
created_at?string
hash_config?
id?string
imported_passwords?integer

ImportedPasswords counts the users whose imported hash still needs this source: they have not signed in since.

name?string
object?string
source_type?string
Value in"auth0""clerk""supabase""lovable_cloud""firebase""cognito""nextauth""better_auth""replit_auth""other"
updated_at?string
Example Request
curl -X GET 'https://api.us.pontive.com/v1/authn/migration-sources/string'
Example Response
{  "created_at": "string",  "hash_config": {    "firebase_scrypt": {      "mem_cost": 0,      "rounds": 0,      "salt_separator": "string",      "signer_key": "string",      "signer_key_preview": "string"    }  },  "id": "string",  "imported_passwords": 0,  "name": "string",  "object": "string",  "source_type": "auth0",  "updated_at": "string"}

Update migration source

PATCH
/authn/migration-sources/{migration_source_id}

Change the name, or replace hash_config whole: an omitted signer_key keeps the stored one, and {"firebase_scrypt": null} removes Firebase's parameters, refused migration_source_in_use while imported hashes still need them. Needs sys:migration:manage on the instance root.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

migration_source_id*string

Migration source ID (msrc_)

Request Body

Changes

application/json
  1. body

Changes

hash_config?
name?string

Response Body

OK

application/json
  1. response
created_at?string
hash_config?
id?string
imported_passwords?integer

ImportedPasswords counts the users whose imported hash still needs this source: they have not signed in since.

name?string
object?string
source_type?string
Value in"auth0""clerk""supabase""lovable_cloud""firebase""cognito""nextauth""better_auth""replit_auth""other"
updated_at?string
Example Request
curl -X PATCH 'https://api.us.pontive.com/v1/authn/migration-sources/string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "created_at": "string",  "hash_config": {    "firebase_scrypt": {      "mem_cost": 0,      "rounds": 0,      "salt_separator": "string",      "signer_key": "string",      "signer_key_preview": "string"    }  },  "id": "string",  "imported_passwords": 0,  "name": "string",  "object": "string",  "source_type": "auth0",  "updated_at": "string"}

Delete migration source

DELETE
/authn/migration-sources/{migration_source_id}

Delete the source with the legacy identities its imports wrote; runs keep their records. Refused migration_source_in_use while imported hashes still need its parameters. Needs sys:migration:manage on the instance root.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

migration_source_id*string

Migration source ID (msrc_)

Response Body

No Content

Example Request
curl -X DELETE 'https://api.us.pontive.com/v1/authn/migration-sources/string'
Example Response
Empty
POST
/authn/migration-sources/{migration_source_id}/validate

Report problems without changing anything: whether the source has the parameters its type needs and, given firebase_scrypt_sample (a known Firebase user's password, password hash and salt), whether its Firebase parameters verify that user. Needs sys:migration:manage on the instance root.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

migration_source_id*string

Migration source ID (msrc_)

Request Body

Sample

application/json
  1. body

Sample

firebase_scrypt_sample?

Response Body

OK

application/json
  1. response
checks?array<>
object?string
Example Request
curl -X POST 'https://api.us.pontive.com/v1/authn/migration-sources/string/validate' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "checks": [    {      "check": "string",      "detail": "string",      "status": "ok"    }  ],  "object": "string"}