Explo utilizes token based authentication. To correctly make a call to an API, it must include the Explo-Authorization header with a valid team token. Below is an example of what the header would look like, replacing <team_token> with a valid token.
'Explo-Authorization': 'Token <team_token>'
This endpoint gets or creates a new user group. If the user_group_id does not exist, a new user group will be created and information about the group will be sent back. If the user_group_id exists, no action will be taken but the same information about the group will be sent back. There will be a flag in the response indicating if a new user group was created.
Endpoint:
POST https://embeddo.herokuapp.com/embed/create_user_group/
Body:
{
"user_group_id": "example_1",
"name": "Example 1"
}
Response:
{
"success": 1,
"new_user_group": true,
"user_group": {
"team_id": 3,
"token": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"name": "Example 1",
"provided_id": "example_1"
}
}