Skip to main content
POST
/
auth
/
me
Visualizar dados do usuário logado
curl --request POST \
  --url https://api.dooki.com.br/v2/auth/me \
  --header 'User-Secret-Key: <api-key>' \
  --header 'User-Token: <api-key>'
import requests

url = "https://api.dooki.com.br/v2/auth/me"

headers = {
"User-Token": "<api-key>",
"User-Secret-Key": "<api-key>"
}

response = requests.post(url, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {'User-Token': '<api-key>', 'User-Secret-Key': '<api-key>'}
};

fetch('https://api.dooki.com.br/v2/auth/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.dooki.com.br/v2/auth/me",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"User-Secret-Key: <api-key>",
"User-Token: <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.dooki.com.br/v2/auth/me"

req, _ := http.NewRequest("POST", url, nil)

req.Header.Add("User-Token", "<api-key>")
req.Header.Add("User-Secret-Key", "<api-key>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://api.dooki.com.br/v2/auth/me")
.header("User-Token", "<api-key>")
.header("User-Secret-Key", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.dooki.com.br/v2/auth/me")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["User-Token"] = '<api-key>'
request["User-Secret-Key"] = '<api-key>'

response = http.request(request)
puts response.read_body
{
  "id": 123,
  "active": true,
  "name": "<string>",
  "social_name": "<string>",
  "email": "jsmith@example.com",
  "temporary_email": "jsmith@example.com",
  "is_owner": true,
  "agree": true,
  "merchant_owner": true,
  "super_user": true,
  "last_login_at": "2023-11-07T05:31:56Z",
  "avatar_url": "<string>",
  "allow_notifications": true,
  "type": "<string>",
  "created_at": {
    "date": "2000-08-17 10:24:24",
    "timezone_type": 3,
    "timezone": "America/Sao_Paulo"
  },
  "created_at_timestamp": 123,
  "updated_at": {
    "date": "2000-08-17 10:24:24",
    "timezone_type": 3,
    "timezone": "America/Sao_Paulo"
  },
  "confirmed_at": "2023-11-07T05:31:56Z",
  "mfa_enabled": true,
  "cpf": "<string>",
  "birthday": "2023-12-25",
  "phone": "<string>",
  "address_street": "<string>",
  "address_number": "<string>",
  "address_neighborhood": "<string>",
  "address_complement": "<string>",
  "address_city": "<string>",
  "address_state": "<string>",
  "address_zipcode": "<string>",
  "merchants": {
    "data": [
      {
        "id": 123,
        "preset_id": 123,
        "active": true,
        "internal_active": true,
        "is_marketplace": true,
        "is_partner": true,
        "use_only_checkout": true,
        "profile": "<string>",
        "alias": "<string>",
        "has_domain": true,
        "domain": "<string>",
        "base_url": "<string>",
        "name": "<string>",
        "icon_url": "<string>",
        "logo_url": "<string>",
        "has_subscription": true,
        "has_charges": true,
        "has_marketplace_accounts": true,
        "has_shopify": true,
        "has_affiliations": true,
        "coupon_created": true,
        "order_bump_created": true,
        "upsell_created": true,
        "pixel_created": true,
        "owner_id": 123,
        "owner_email": "jsmith@example.com",
        "owner_created_at": "2023-11-07T05:31:56Z",
        "domains_list": [
          "<string>"
        ],
        "tags": [
          "<string>"
        ],
        "has_services": {
          "shopifyapp": true,
          "bling": true,
          "woocommerce": true,
          "mago": true,
          "tiny": true
        },
        "shopify_integration": "<string>",
        "has_credit_card": true,
        "created_at": {
          "date": "2000-08-17 10:24:24",
          "timezone_type": 3,
          "timezone": "America/Sao_Paulo"
        },
        "updated_at": {
          "date": "2000-08-17 10:24:24",
          "timezone_type": 3,
          "timezone": "America/Sao_Paulo"
        },
        "subscription": {
          "plan": "<string>",
          "status": "<string>"
        }
      }
    ]
  },
  "group": {
    "data": [
      "<unknown>"
    ]
  },
  "notification_types": {
    "data": [
      "<unknown>"
    ]
  },
  "lead_data": {
    "data": [
      "<unknown>"
    ]
  }
}

Authorizations

User-Token
string
header
required
User-Secret-Key
string
header
required

Response

Dados do usuário logado

Informações de um usuário.

id
integer
active
boolean
name
string
social_name
string | null
email
string<email>
temporary_email
string<email> | null
is_owner
boolean
agree
boolean
merchant_owner
boolean
super_user
boolean
last_login_at
string<date-time>
avatar_url
string<uri>
allow_notifications
boolean
type
string
created_at
object
created_at_timestamp
integer
updated_at
object
confirmed_at
string<date-time>
mfa_enabled
boolean
cpf
string
birthday
string<date>
phone
string
address_street
string | null
address_number
string | null
address_neighborhood
string | null
address_complement
string | null
address_city
string | null
address_state
string | null
address_zipcode
string | null
merchants
object
group
object
notification_types
object
lead_data
object