Org Invites Actions
https://api.app.wnology.io/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.app.wnology.io/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 | |
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.app.wnology.io/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.app.wnology.io/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@weg.net",
"token": "the_invitation_token",
"accept": true
}
Curl Example
curl -H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-X POST \
-d '{"email":"invitedUser@weg.net","token":"the_invitation_token","accept":true}' \
https://api.app.wnology.io/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 WEGnology Forums or submit your question there.