Org Invites Actions

https://api.losant.com/invites

Below are the various requests that can be performed against the Org Invites resource, as well as the expected parameters and the potential responses.

Get

Gets information about an invite

Method And Url

GET https://api.losant.com/invites

Authentication

No authentication is required for this endpoint.

Request Query Parameters

Name Required Description Default Example
token Y The token associated with the invite token=aTokenString
email Y The email associated with the invite email=example@example.com

Curl Example

curl -H 'Content-Type: application/json' \
    -H 'Accept: application/json' \
    -X GET \
    https://api.losant.com/invites?token=aTokenString&email=example%40example.com

Successful Responses

Code Type Description
200 Organization Invitation Information Information about invite

Error Responses

Code Type Description
400 Error Error if malformed request
404 Error Error if invite not found
410 Error Error if invite has expired

Post

Accepts/Rejects an invite

Method And Url

POST https://api.losant.com/invites

Authentication

No authentication is required for this endpoint.

Request Body

The body of the request should be serialized JSON that validates against the Organization Invitation Action schema. For example, the following would be a valid body for this request:

{
  "email": "invitedUser@example.com",
  "token": "the_invitation_token",
  "accept": true
}

Curl Example

curl -H 'Content-Type: application/json' \
    -H 'Accept: application/json' \
    -X POST \
    -d '{"email":"invitedUser@example.com","token":"the_invitation_token","accept":true}' \
    https://api.losant.com/invites

Successful Responses

Code Type Description
200 Organization Invitation Result Acceptance/Rejection of invite

Error Responses

Code Type Description
400 Error Error if malformed request
404 Error Error if invite not found
410 Error Error if invite has expired

Was this page helpful?


Still looking for help? You can also search the Losant Forums or submit your question there.