Get profile
curl --request GET \
--url https://api.atlas.kitchen/accounts/v1/profile \
--header 'X-Channel-Id: <api-key>' \
--header 'X-Session-Id: <api-key>'import requests
url = "https://api.atlas.kitchen/accounts/v1/profile"
headers = {
"X-Channel-Id": "<api-key>",
"X-Session-Id": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'X-Channel-Id': '<api-key>', 'X-Session-Id': '<api-key>'}
};
fetch('https://api.atlas.kitchen/accounts/v1/profile', 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.atlas.kitchen/accounts/v1/profile",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Channel-Id: <api-key>",
"X-Session-Id: <api-key>"
],
]);
$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.atlas.kitchen/accounts/v1/profile"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Channel-Id", "<api-key>")
req.Header.Add("X-Session-Id", "<api-key>")
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.atlas.kitchen/accounts/v1/profile")
.header("X-Channel-Id", "<api-key>")
.header("X-Session-Id", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.atlas.kitchen/accounts/v1/profile")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Channel-Id"] = '<api-key>'
request["X-Session-Id"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"name": "Richard Hendricks",
"title": "Mr",
"date_of_birth": null,
"email": "richard.hendricks@demo.kitchen",
"mobile_number": "+6581000001",
"is_mobile_verified": true,
"referral_code": "AT4101",
"marketing_consent": true
}{
"type": "Unauthorized",
"message": "You did not provide valid credentials for this request. Please check your request and try again.",
"details": [
{
"field": "login",
"message": "You have to be logged in to process this request."
}
]
}Get profile
If the diner hasn’t verified their mobile number, name, email and mobile_number are masked and date_of_birth is null.
GET
/
profile
Get profile
curl --request GET \
--url https://api.atlas.kitchen/accounts/v1/profile \
--header 'X-Channel-Id: <api-key>' \
--header 'X-Session-Id: <api-key>'import requests
url = "https://api.atlas.kitchen/accounts/v1/profile"
headers = {
"X-Channel-Id": "<api-key>",
"X-Session-Id": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'X-Channel-Id': '<api-key>', 'X-Session-Id': '<api-key>'}
};
fetch('https://api.atlas.kitchen/accounts/v1/profile', 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.atlas.kitchen/accounts/v1/profile",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Channel-Id: <api-key>",
"X-Session-Id: <api-key>"
],
]);
$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.atlas.kitchen/accounts/v1/profile"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Channel-Id", "<api-key>")
req.Header.Add("X-Session-Id", "<api-key>")
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.atlas.kitchen/accounts/v1/profile")
.header("X-Channel-Id", "<api-key>")
.header("X-Session-Id", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.atlas.kitchen/accounts/v1/profile")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Channel-Id"] = '<api-key>'
request["X-Session-Id"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"name": "Richard Hendricks",
"title": "Mr",
"date_of_birth": null,
"email": "richard.hendricks@demo.kitchen",
"mobile_number": "+6581000001",
"is_mobile_verified": true,
"referral_code": "AT4101",
"marketing_consent": true
}{
"type": "Unauthorized",
"message": "You did not provide valid credentials for this request. Please check your request and try again.",
"details": [
{
"field": "login",
"message": "You have to be logged in to process this request."
}
]
}Authorizations
Response
The signed-in diner
Was this page helpful?