Get account roles
curl --request GET \
--url https://api.wotnot.io/v1/accounts/{account_id}/user-roles \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: <content-type>'import requests
url = "https://api.wotnot.io/v1/accounts/{account_id}/user-roles"
headers = {
"Content-Type": "<content-type>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'Content-Type': '<content-type>', Authorization: 'Bearer <token>'}
};
fetch('https://api.wotnot.io/v1/accounts/{account_id}/user-roles', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.wotnot.io/v1/accounts/{account_id}/user-roles",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: <content-type>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.wotnot.io/v1/accounts/{account_id}/user-roles"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Content-Type", "<content-type>")
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.wotnot.io/v1/accounts/{account_id}/user-roles")
.header("Content-Type", "<content-type>")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.wotnot.io/v1/accounts/{account_id}/user-roles")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Content-Type"] = '<content-type>'
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"roles": [
{
"role_configuration": {
"live_chat": {
"settings": true,
"full_access": true,
"human_handover": true
},
"analytics": {
"full_access": true
},
"support_ticket": {
"full_access": true
},
"bot_builder": {
"full_access": true,
"read_only_access": true
},
"ticket": {
"full_access": true
},
"account_settings": {
"teammates": true,
"billing": true,
"variables": true,
"automation": true,
"csat": true,
"teams": true,
"events": true,
"settings": true,
"link_tracking": true
},
"ai_studio": {
"full_access": true
},
"contacts": {
"full_access": true
},
"app_market": {
"full_access": true
},
"channel_configuration": {
"sms": {
"opt_out_management": true,
"configuration": true
},
"web": {
"appearance": true,
"trigger_conditions": true,
"pop_up_messages": true,
"configuration": true,
"general_settings": true
},
"whatsapp": {
"templates": true,
"configuration": true
},
"instagram": {
"configuration": true
},
"facebook": {
"configuration": true
},
"voice": {
"configuration": true
},
"email": {
"templates": true,
"configuration": true
}
}
},
"users_in_role": [
{
"user_type_id": 1,
"image_url": null,
"last_name": "Doe",
"first_name": "John",
"id": 112233,
"email": "john.doe@gmail.com"
}
],
"master_role_id": 2,
"id": 99,
"role_name": "admin",
"description": "Has complete access to configure and manage every aspect of the platform.",
"created_at": "04-Jan-26, 01:13 AM"
}
],
"ok": true,
"pagination": {
"offset": 0,
"limit": 50,
"total": 1
}
}{
"error": "UNAUTHORIZED",
"ok": false,
"status": 401,
"message": "Invalid token. Provide the valid account token."
}Get account roles
Returns all the user roles in your account, with what each role can access and who has it.
GET
/
v1
/
accounts
/
{account_id}
/
user-roles
Get account roles
curl --request GET \
--url https://api.wotnot.io/v1/accounts/{account_id}/user-roles \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: <content-type>'import requests
url = "https://api.wotnot.io/v1/accounts/{account_id}/user-roles"
headers = {
"Content-Type": "<content-type>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'Content-Type': '<content-type>', Authorization: 'Bearer <token>'}
};
fetch('https://api.wotnot.io/v1/accounts/{account_id}/user-roles', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.wotnot.io/v1/accounts/{account_id}/user-roles",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: <content-type>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.wotnot.io/v1/accounts/{account_id}/user-roles"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Content-Type", "<content-type>")
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.wotnot.io/v1/accounts/{account_id}/user-roles")
.header("Content-Type", "<content-type>")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.wotnot.io/v1/accounts/{account_id}/user-roles")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Content-Type"] = '<content-type>'
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"roles": [
{
"role_configuration": {
"live_chat": {
"settings": true,
"full_access": true,
"human_handover": true
},
"analytics": {
"full_access": true
},
"support_ticket": {
"full_access": true
},
"bot_builder": {
"full_access": true,
"read_only_access": true
},
"ticket": {
"full_access": true
},
"account_settings": {
"teammates": true,
"billing": true,
"variables": true,
"automation": true,
"csat": true,
"teams": true,
"events": true,
"settings": true,
"link_tracking": true
},
"ai_studio": {
"full_access": true
},
"contacts": {
"full_access": true
},
"app_market": {
"full_access": true
},
"channel_configuration": {
"sms": {
"opt_out_management": true,
"configuration": true
},
"web": {
"appearance": true,
"trigger_conditions": true,
"pop_up_messages": true,
"configuration": true,
"general_settings": true
},
"whatsapp": {
"templates": true,
"configuration": true
},
"instagram": {
"configuration": true
},
"facebook": {
"configuration": true
},
"voice": {
"configuration": true
},
"email": {
"templates": true,
"configuration": true
}
}
},
"users_in_role": [
{
"user_type_id": 1,
"image_url": null,
"last_name": "Doe",
"first_name": "John",
"id": 112233,
"email": "john.doe@gmail.com"
}
],
"master_role_id": 2,
"id": 99,
"role_name": "admin",
"description": "Has complete access to configure and manage every aspect of the platform.",
"created_at": "04-Jan-26, 01:13 AM"
}
],
"ok": true,
"pagination": {
"offset": 0,
"limit": 50,
"total": 1
}
}{
"error": "UNAUTHORIZED",
"ok": false,
"status": 401,
"message": "Invalid token. Provide the valid account token."
}Authorizations
All of WotNot's APIs use Bearer token authentication. Send your account token as Bearer <token>. You can find it in Settings > Account Settings > Developer. Keep it on your server: anyone who has it can call the API as your account.
Headers
Always set this to application/json.
Available options:
application/json Path Parameters
The ID of your WotNot account.
Response
Returns ok set to true, the account's roles, and pagination.
Last modified on October 22, 2026
Was this page helpful?