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.
x-pontive-instance-id<token>Instance ID for the request
page?integerPage number
limit?integerItems per page, 1 to 100
OK
application/json- response
data?array<>object?stringpagination?Pagination is the page answered (api-route-review D9).
curl -X GET 'https://api.us.pontive.com/v1/authn/migration-sources'{ "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 }}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.
x-pontive-instance-id<token>Instance ID for the request
Source
application/json- body
Source
hash_config?name?stringsource_type?string"auth0""clerk""supabase""lovable_cloud""firebase""cognito""nextauth""better_auth""replit_auth""other"Created
application/json- response
created_at?stringhash_config?id?stringimported_passwords?integerImportedPasswords counts the users whose imported hash still needs this source: they have not signed in since.
name?stringobject?stringsource_type?string"auth0""clerk""supabase""lovable_cloud""firebase""cognito""nextauth""better_auth""replit_auth""other"updated_at?stringcurl -X POST 'https://api.us.pontive.com/v1/authn/migration-sources' \ -H 'Content-Type: application/json' \ -d '{}'{ "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"}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.
x-pontive-instance-id<token>Instance ID for the request
migration_source_id*stringMigration source ID (msrc_)
OK
application/json- response
created_at?stringhash_config?id?stringimported_passwords?integerImportedPasswords counts the users whose imported hash still needs this source: they have not signed in since.
name?stringobject?stringsource_type?string"auth0""clerk""supabase""lovable_cloud""firebase""cognito""nextauth""better_auth""replit_auth""other"updated_at?stringcurl -X GET 'https://api.us.pontive.com/v1/authn/migration-sources/string'{ "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"}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.
x-pontive-instance-id<token>Instance ID for the request
migration_source_id*stringMigration source ID (msrc_)
Changes
application/json- body
Changes
hash_config?name?stringOK
application/json- response
created_at?stringhash_config?id?stringimported_passwords?integerImportedPasswords counts the users whose imported hash still needs this source: they have not signed in since.
name?stringobject?stringsource_type?string"auth0""clerk""supabase""lovable_cloud""firebase""cognito""nextauth""better_auth""replit_auth""other"updated_at?stringcurl -X PATCH 'https://api.us.pontive.com/v1/authn/migration-sources/string' \ -H 'Content-Type: application/json' \ -d '{}'{ "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 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.
x-pontive-instance-id<token>Instance ID for the request
migration_source_id*stringMigration source ID (msrc_)
No Content
curl -X DELETE 'https://api.us.pontive.com/v1/authn/migration-sources/string'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.
x-pontive-instance-id<token>Instance ID for the request
migration_source_id*stringMigration source ID (msrc_)
Sample
application/json- body
Sample
firebase_scrypt_sample?OK
application/json- response
checks?array<>object?stringcurl -X POST 'https://api.us.pontive.com/v1/authn/migration-sources/string/validate' \ -H 'Content-Type: application/json' \ -d '{}'{ "checks": [ { "check": "string", "detail": "string", "status": "ok" } ], "object": "string"}