Show a signup in progress
const url = 'https://app.caprid.com/v1/signup';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://app.caprid.com/v1/signupOnly with WorkOS login. After a first sign-in, the person has proved who they are but has no Account yet. This route returns the email WorkOS verified, so the dashboard can ask for a Namespace. It also lists the pending Invitations to that email, so the dashboard can offer to join one of those Organizations instead. The login callback sets a cookie that holds the signup in progress for 15 minutes.
Responses
Section titled “Responses”The signup in progress.
object
An offer of membership in an Organization to one email address.
object
Identifies the Invitation in routes. Not a secret.
The Organization’s name, for someone who isn’t in it yet.
Who may accept it. Stored lowercased.
The role they’ll have once they accept.
When the link stops working, 7 days after it was created.
Example
{ "email": "alice@acme.example", "invitations": [ { "id": "3f9c1a2b7d4e", "organization_id": 4, "organization_name": "Acme", "email": "alice@acme.example", "role": "member", "created_at": 1790294400, "expires_at": 1790899200 } ]}No signup is in progress, or this server doesn’t use WorkOS login.
object
Example
{ "error": "the requested grants exceed the key's scope"}