GET /oauth/clients/{client_id}
Implementa GET /oauth/clients/{client_id}.
- Acesso: Pública
- Serviço:
https://auth-api.axuz.net
Autenticação aceita
sessionCookie— Sessão plena Axuz (cookie de sessão da casa). Sessão restrita é 403 enrollment_required.
Implementa GET /oauth/clients/{client_id}. Onde: tela de desenvolvedor. Exige sessão plena e posse.
Parâmetros
| Nome | Em | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
client_id | path | string | sim |
Respostas
200
Client.
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
client_id | string | sim | |
name | string | sim | |
client_type | string | sim | enum: |
redirect_uris | array<string> | sim | |
scopes | array<string> | sim | |
team_id | string<uuid> | null | não | |
verified | boolean | sim | |
created_at | string<date-time> | sim |
401
Sem sessão válida.
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
error | string | sim | invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, invalid_token, insufficient_scope, access_denied, login_required, consent_required, enrollment_required, rate_limited, not_found, server_error. |
error_description | string | não |
404
Inexistente OU de outro dono (indistinguíveis).
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
error | string | sim | invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, invalid_token, insufficient_scope, access_denied, login_required, consent_required, enrollment_required, rate_limited, not_found, server_error. |
error_description | string | não |
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://auth-api.axuz.net/oauth/clients/CLIENT_ID' \
-H "Cookie: access_token=$AXUZ_SESSION_JWT"Node.js
const res = await fetch("https://auth-api.axuz.net/oauth/clients/CLIENT_ID", {
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://auth-api.axuz.net/oauth/clients/CLIENT_ID",
headers={
"Cookie": f"access_token={os.environ['AXUZ_SESSION_JWT']}",
},
timeout=30,
)
res.raise_for_status()
print(res.json())