Skip to content

Team

Accept an invite

Adds the signed-in user to the invited workspace. The user must be signed in with the email address the invite was sent to.

POST/api/invites/{token}/accept
  • Console only: signed-in session

Path parameters

  • tokenstringrequired

    The token from the invite link.

    Example
    f3a9…

Headers

  • Cookiestringrequired

    The whatsappx_session cookie the app sets when you sign in. Browsers send it automatically; API keys are not accepted on this endpoint.

    Example
    whatsappx_session=…

Response

200 OKapplication/json

  • iduuid

    Workspace id. Send it as X-Tenant-ID.

  • namestring

    Workspace name.

  • roleenum

    Your role in the workspace: owner, admin or agent.

Status codes

  • 200OK. The workspace you joined.
  • 400Bad request. You are signed in with a different email (sign in with <email> to accept this invite).
  • 401Unauthorized. No signed-in session (unauthorized).
  • 404Not found. The invite is unknown, revoked or expired.