Skip to main content

Invitations

POST Accepts invitation

https://api.track.toggl.com/api/v9/organizations/invitations/{invitation_code}/accept

User connected with invitation is marked as joined, email is sent to the inviter.

curl -X POST https://api.track.toggl.com/api/v9/organizations/invitations/{invitation_code}/accept \
-H "Content-Type: application/json"

Parameters

Path

nametyperequireddescription
inviutation_codestringtrueInvitation code

Response

OK

POST Creates a new invitation for the user

https://api.track.toggl.com/api/v9/organizations/{organization_id}/invitations

Creates a new invitation for the user.

curl -X POST https://api.track.toggl.com/api/v9/organizations/{organization_id}/invitations \
-H "Content-Type: application/json" \
-d '{"emails":["string"],"workspaces":[{"admin":"boolean","workspace_id":"integer"}]}' \
-u <email>:<password>

Parameters

Path

nametyperequireddescription
organization_idintegertrueNumeric ID of the organization.

Body

nametypedescription
emailsArray of string-
workspacesArray of
nametypedescription
adminboolean-
workspace_idinteger-
-

Response

{
"data": {
"items": [
{
"email": {
"type": "string"
},
"invitation_id": {
"type": "integer"
},
"invite_url": {
"type": "string"
},
"organization_id": {
"type": "integer"
},
"recipient_id": {
"type": "integer"
},
"sender_id": {
"type": "integer"
}
}
]
},
"messages": {
"type": [
"string"
]
}
}
© 2022 Toggl. All rights reserved.