User
[GET] user details
Consulta de dados da empresa autenticada pela API.
Retorna os detalhes da empresa vinculada às credenciais utilizadas na autenticação.
Endpoint
GET /user/companyURL base (homologação)
https://staging.sharktecnologia.com/api/v1/oauthHeaders obrigatórios
accept: application/jsonAuthorization: Basic {token}
Exemplos
cURL
curl --location 'https://staging.sharktecnologia.com/api/v1/user/company' \
--header 'accept: application/json' \
--header 'Authorization: Basic <SEU_TOKEN_BASE64>'Python
import requests
url = "https://staging.sharktecnologia.com/api/v1/user/company"
headers = {
"accept": "application/json",
"Authorization": "Basic <SEU_TOKEN_BASE64>"
}
response = requests.get(url, headers=headers, timeout=30)
print(response.status_code)
print(response.json())TypeScript
const response = await fetch(
"https://staging.sharktecnologia.com/api/v1/user/company",
{
method: "GET",
headers: {
accept: "application/json",
Authorization: "Basic <SEU_TOKEN_BASE64>",
},
},
);
const data = await response.json();
console.log(response.status, data);Respostas
200 OK
{
"api_active": true,
"created_at": "2026-02-27T21:37:52.304116Z",
"updated_at": "2026-02-27T21:37:52.304188Z"
}401 Unauthorized
Credenciais inválidas, token mal formatado ou uso de chaves em ambiente incorreto.
