Read operator profile
curl --request GET \
--url https://services-api.talqui.chat/v1/operators/meimport requests
url = "https://services-api.talqui.chat/v1/operators/me"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://services-api.talqui.chat/v1/operators/me', 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://services-api.talqui.chat/v1/operators/me",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://services-api.talqui.chat/v1/operators/me"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://services-api.talqui.chat/v1/operators/me")
.asString();require 'uri'
require 'net/http'
url = URI("https://services-api.talqui.chat/v1/operators/me")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"operator": {
"createdAt": "2023-11-07T05:31:56Z",
"lastSignInAt": "2023-11-07T05:31:56Z",
"lastTenantID": "<string>",
"operatorEmail": "<string>",
"operatorFirstname": "<string>",
"operatorID": "<string>",
"operatorLastname": "<string>",
"operatorMeta": {},
"operatorPhone": "<string>",
"operatorPhoto": "<string>",
"operatorRoles": [
"<string>"
],
"updatedAt": "2023-11-07T05:31:56Z",
"operatorSettings": {
"notificationSettings": {
"allDisabled": true,
"allowSounds": true,
"onMessageInbound": true,
"onSessionCreated": true,
"onSessionQueued": true,
"tokens": {
"mobile": "<string>",
"web": "<string>"
},
"onOperatorMentioned": true
}
},
"organizationID": "<string>"
}
}
}{
"errors": [
{
"error": "MissingOperatorIDError",
"error_code": 1063,
"message": "operatorID is required.",
"statusCode": 400
}
]
}{
"errors": [
{
"error": "UnauthorizedError",
"error_code": 1003,
"message": "You are not authorized to perform this request.",
"statusCode": 401
}
]
}{
"errors": [
{
"error": "OperatorNotFoundError",
"error_code": 1064,
"message": "Operator not found.",
"statusCode": 404
}
]
}{
"errors": [
{
"error": "UnknownError",
"error_code": 5999,
"message": "For some unknown reason your request has not succeeded.",
"statusCode": 500
}
]
}Operators
Read operator profile
Returns the authenticated operator’s own document — name, photo, phone, roles and notification settings.
The operator token only carries the id, the e-mail and the roles, so this is where the rest of the profile comes from. It takes no parameters: the identity is the scope, and there is deliberately no way to ask for another operator’s record here.
operatorPassword and operatorToken are never returned, and
operatorPhoto comes back resolved through the storage service, never as
the stored address: a legacy bucket address becomes its cdn URL. A storage
failure degrades the photo link, never the response.
GET
/
v1
/
operators
/
me
Read operator profile
curl --request GET \
--url https://services-api.talqui.chat/v1/operators/meimport requests
url = "https://services-api.talqui.chat/v1/operators/me"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://services-api.talqui.chat/v1/operators/me', 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://services-api.talqui.chat/v1/operators/me",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://services-api.talqui.chat/v1/operators/me"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://services-api.talqui.chat/v1/operators/me")
.asString();require 'uri'
require 'net/http'
url = URI("https://services-api.talqui.chat/v1/operators/me")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"operator": {
"createdAt": "2023-11-07T05:31:56Z",
"lastSignInAt": "2023-11-07T05:31:56Z",
"lastTenantID": "<string>",
"operatorEmail": "<string>",
"operatorFirstname": "<string>",
"operatorID": "<string>",
"operatorLastname": "<string>",
"operatorMeta": {},
"operatorPhone": "<string>",
"operatorPhoto": "<string>",
"operatorRoles": [
"<string>"
],
"updatedAt": "2023-11-07T05:31:56Z",
"operatorSettings": {
"notificationSettings": {
"allDisabled": true,
"allowSounds": true,
"onMessageInbound": true,
"onSessionCreated": true,
"onSessionQueued": true,
"tokens": {
"mobile": "<string>",
"web": "<string>"
},
"onOperatorMentioned": true
}
},
"organizationID": "<string>"
}
}
}{
"errors": [
{
"error": "MissingOperatorIDError",
"error_code": 1063,
"message": "operatorID is required.",
"statusCode": 400
}
]
}{
"errors": [
{
"error": "UnauthorizedError",
"error_code": 1003,
"message": "You are not authorized to perform this request.",
"statusCode": 401
}
]
}{
"errors": [
{
"error": "OperatorNotFoundError",
"error_code": 1064,
"message": "Operator not found.",
"statusCode": 404
}
]
}{
"errors": [
{
"error": "UnknownError",
"error_code": 5999,
"message": "For some unknown reason your request has not succeeded.",
"statusCode": 500
}
]
}Response
Response for status 200.
Show child attributes
Show child attributes
⌘I