Workspace

Reject Invitation

Changed on

Reject a workspace invitation. Usable by authenticated users only.

put/api/v1/workspaces/invitations/{invite_code}/reject

Request

  • Base URL
    https://api.todoist.com
  • URL
    https://api.todoist.com/api/v1/workspaces/invitations/{invite_code}/reject
  • Auth
    none declared

Path parameters

invite_codestring required

An opaque string representing an invite code. This invitation code is sent to a user via email and is exclusive for the user.

Example:26d332457f16dc67f18385194be148f62c2b4317

Response

Successful Response

inviter_idstring required

ID of the user user who sent the invitation

user_emailstring required

The invited person's email.

workspace_idstring required

ID of the workspace

role'ADMIN' | 'MEMBER' | 'GUEST' required

Role of the user inside the workspace

idstring

The ID of the invitation

app'todoist' | 'comms' | 'automations'

Product name as first-party clients spell it on the wire.

Example response

{
  "inviter_id": "1029384756",
  "user_email": "foo@example.com",
  "workspace_id": "12345",
  "id": "234"
}

Changes