Skip to main content

Update Client Registration Link (v1)

Method & Path

PATCH /api/v1/workspace/:workspaceId/clients/registration-link

Actual backend path: /v1/workspace/:workspaceId/clients/registration-link

Description

Regenerate the one-time client self-registration invite. A new token invalidates the previous URL and clears any previous usage so the new link can be sent to another person.

note

The enabled field is accepted for backward compatibility but ignored. One-time links are active until used; there is no public-link toggle.

Authentication

Required: Workspace Owner JWT or Staff JWT.

Persona access:

  • Workspace Owner: full access
  • Staff with client.create: can regenerate

Headers

HeaderTypeRequiredDescription
AuthorizationstringYesBearer token
Content-TypestringYesapplication/json

Path Parameters

ParameterTypeRequiredDescription
workspaceIdstringYesWorkspace identifier

Request Body

{
"regenerate": true
}
ParameterTypeRequiredDescription
regeneratebooleanNoWhen true, issues a fresh unused token
enabledbooleanNoIgnored (legacy)

Response 200 OK

{
"link": {
"enabled": true,
"status": "available",
"token": "d4e5f6...",
"publicPath": "/register/d4e5f6...",
"registeredName": null
}
}

Common Errors

  • 401 Unauthorized: Missing or invalid authentication token
  • 404 Not Found: Workspace not found
  • 500 Internal Server Error: Unexpected server error