GET /v1/integration/self/
Quem sou eu (integracao, time, escopos efetivos do token)
- Acesso: Pública
- Serviço:
https://api.axuz.net
Autenticação aceita
botToken
Exige escopo integrations:read. Nunca devolve segredo/hash.
Parâmetros
Sem parâmetros.
Respostas
200
OK
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
integration | Integration | sim | |
integration.id | string<uuid> | sim | |
integration.team_id | string<uuid> | sim | |
integration.provider | string | sim | enum: |
integration.name | string | sim | |
integration.state | string | sim | enum: |
integration.scopes | array<string> | sim | |
integration.metadata | object | sim | NAO-secreta; <= 4 KiB. |
integration.created_by | string<uuid> | não | |
integration.created_at | string<date-time> | sim | |
integration.updated_at | string<date-time> | sim | |
integration.revoked_at | string<date-time> | não | |
team_id | string<uuid> | sim | |
token | object | sim | |
token.id | string<uuid> | não | |
token.scopes | array<string> | não |
401
Sem credencial valida
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
error | string | sim |
403
Sem permissao (nao e owner/admin; token sem escopo; token de integracao em rota nao permitida)
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
error | string | sim |
429
Limite de requisições excedido.
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
error | string | sim |
500
Erro interno. Tente de novo com backoff; reporte o X-Request-Id.
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
error | string | sim |
Exemplos
O "Try it" está desligado nesta referência. Use os exemplos com a sua credencial de teste.
curl
curl -sS -X GET 'https://api.axuz.net/v1/integration/self/' \
-H "Cookie: access_token=$AXUZ_SESSION_JWT"Node.js
const res = await fetch("https://api.axuz.net/v1/integration/self/", {
method: 'GET',
headers: {
Cookie: `access_token=${process.env.AXUZ_SESSION_JWT}`,
},
});
if (!res.ok) throw new Error(`HTTP ${res.status}: ${await res.text()}`);
console.log(await res.json());Python
import os
import requests
res = requests.request(
"GET",
"https://api.axuz.net/v1/integration/self/",
headers={
"Cookie": f"access_token={os.environ['AXUZ_SESSION_JWT']}",
},
timeout=30,
)
res.raise_for_status()
print(res.json())