me.get
Dados do usuário e suas contas. Retorna o usuário autenticado, as contas de que participa (papel, plano, permissões) e a conta atual.
- Endpoint:
POST https://app.atomiks.com.br/api/v1/me.get(corpo JSON) - Quem pode chamar: qualquer usuário autenticado
- Escopo da chave: nenhum (qualquer chave serve)
- Grava dados: não
- Pela chave de API: sim
- Ferramenta MCP:
me_get - Ficha em JSON:
https://app.atomiks.com.br/api/v1/openapi.json(operationIdme.get)
Entrada
Sem campos: envie {}.
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {}
}Exemplo
curl -X POST https://app.atomiks.com.br/api/v1/me.get \
-H "Authorization: Bearer $ATOMIKS_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'CLI:
node cli/atomiks.mjs me.get --json '{}'MCP: ferramenta me_get com a mesma entrada.
Saída
Sucesso: {"data": ...} com o formato abaixo.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"user": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"email": {
"type": "string"
},
"name": {
"type": "string"
},
"isSuperAdmin": {
"type": "boolean"
},
"staffRole": {
"anyOf": [
{
"type": "string",
"enum": [
"owner",
"admin",
"support",
"viewer"
]
},
{
"type": "null"
}
]
},
"staffPermissions": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"id",
"email",
"name",
"isSuperAdmin",
"staffRole",
"staffPermissions"
],
"additionalProperties": false
},
"accounts": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"role": {
"type": "string",
"enum": [
"admin",
"user"
]
},
"plan": {
"type": "object",
"properties": {
"key": {
"type": "string"
},
"name": {
"type": "string"
},
"isFree": {
"type": "boolean"
},
"modules": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"key",
"name",
"isFree",
"modules"
],
"additionalProperties": false
},
"permissions": {
"type": "object",
"properties": {
"modules": {
"anyOf": [
{
"type": "string",
"const": "*"
},
{
"type": "array",
"items": {
"type": "string"
}
}
]
},
"screens": {
"anyOf": [
{
"type": "string",
"const": "*"
},
{
"type": "array",
"items": {
"type": "string"
}
}
]
},
"channels": {
"anyOf": [
{
"type": "string",
"const": "*"
},
{
"type": "array",
"items": {
"type": "string"
}
}
]
}
},
"required": [
"modules",
"screens",
"channels"
],
"additionalProperties": false
}
},
"required": [
"id",
"name",
"role",
"plan",
"permissions"
],
"additionalProperties": false
}
},
"currentAccountId": {
"type": [
"string",
"null"
]
}
},
"required": [
"user",
"accounts",
"currentAccountId"
],
"additionalProperties": false
}Erros
{"error": {"code", "message", "requestId"}}. Códigos: invalid_input (400), unauthorized (401), forbidden / account_pending / scope_missing (403), not_found (404), limit_reached (409), internal (500).