See which PMS credential you are using
curl --request GET \
--url https://api.tatallo.com/v1/me \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.tatallo.com/v1/me"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.tatallo.com/v1/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://api.tatallo.com/v1/me",
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>"
],
]);
$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.tatallo.com/v1/me"
req, _ := http.NewRequest("GET", url, nil)
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.tatallo.com/v1/me")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tatallo.com/v1/me")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"credential_id": "5d4e040b-61c1-44a4-a4ca-9a751dc05133",
"pms_name": "Test PMS",
"environment": "staging",
"scopes": [
"properties:read"
]
}{
"error": {
"code": "unauthorized",
"message": "Missing or invalid PMS credential.",
"request_id": "e867476c-9237-4ebd-af42-b93abc47d0ed"
}
}{
"error": {
"code": "rate_limited",
"message": "Too many requests. Retry after the number of seconds in Retry-After.",
"request_id": "c2b7e1d4-8a3f-4e6b-9d2c-7f1a5e9b3c08"
}
}API reference
See which PMS credential you are using
Names the PMS credential that made the call: its public ID, your PMS, the environment it belongs to and its scopes. Any valid key may call it, whatever its scopes. It never returns a secret, so logging the response is safe.
GET
/
v1
/
me
See which PMS credential you are using
curl --request GET \
--url https://api.tatallo.com/v1/me \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.tatallo.com/v1/me"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.tatallo.com/v1/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://api.tatallo.com/v1/me",
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>"
],
]);
$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.tatallo.com/v1/me"
req, _ := http.NewRequest("GET", url, nil)
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.tatallo.com/v1/me")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tatallo.com/v1/me")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"credential_id": "5d4e040b-61c1-44a4-a4ca-9a751dc05133",
"pms_name": "Test PMS",
"environment": "staging",
"scopes": [
"properties:read"
]
}{
"error": {
"code": "unauthorized",
"message": "Missing or invalid PMS credential.",
"request_id": "e867476c-9237-4ebd-af42-b93abc47d0ed"
}
}{
"error": {
"code": "rate_limited",
"message": "Too many requests. Retry after the number of seconds in Retry-After.",
"request_id": "c2b7e1d4-8a3f-4e6b-9d2c-7f1a5e9b3c08"
}
}Authorizations
A PMS credential issued by Tatallo: an opaque key of the form tat_<env>_sk_…, where
<env> is stg on staging and live on production. A key works only in its own
environment. Send it as Authorization: Bearer <key>, from your servers only.
Response
The calling PMS credential.
The public ID of the PMS credential that made the call. Not a secret.
Your PMS, as Tatallo knows it.
The environment the key belongs to. development is Tatallo-internal.
Available options:
staging, production, development What the key may do. properties:read lists and reads properties.
Available options:
properties:read