Login pages

List, fetch, create, update and delete hosted login pages.

list_pages

List an organization’s hosted login pages. Maps to GET /organizations/:org/pages.

NameTypeRequiredDescription
orgstringYesOrganization id (org_…) or slug

Returns the list of pages.

get_page

Fetch one login page by id. The API has no single-page GET, so this lists the organization’s pages and returns the match. Backed by GET /organizations/:org/pages.

NameTypeRequiredDescription
orgstringYesOrganization id (org_…) or slug
page_idstringYesThe page to fetch

Returns the page, or the error no such page: <page_id>.

create_page

Create a login page. Only the name and slug are set here; edit everything else afterwards with update_page. Maps to POST /organizations/:org/pages.

NameTypeRequiredDescription
orgstringYesOrganization id (org_…) or slug
namestringYesPage name, e.g. Acme
slugstringYese.g. acme

Returns the created page.

update_page

Change a login page. The fields you pass are the fields that change. Branding lives on the kit — relink with kitId. Maps to PATCH /organizations/:org/pages/:page_id.

NameTypeRequiredDescription
orgstringYesOrganization id (org_…) or slug
page_idstringYesThe page to update
namestringNo
slugstringNo
typelive, draft or unclaimedNo
customDomainstring or nullNoThe only clearable field: null clears it
clientIdstringNoThe OAuth client the page signs in to
kitIdstringNoThe branding kit
login_methodsobjectNopassword (boolean), magic_link (boolean), sso (array of provider names, e.g. ["google","ms"]) — all three
allow_registrationbooleanNo
whitelabelbooleanNo
localesarray of stringNo
legalobjectNoprivacy_policy, terms_of_service, cookie_policy, legal_notice — all four, each a URL

Returns the updated page.

delete_page

Delete a login page. Maps to DELETE /organizations/:org/pages/:page_id.

NameTypeRequiredDescription
orgstringYesOrganization id (org_…) or slug
page_idstringYesThe page to delete

Returns OK (no content).