GET /v1/oauth/public/apps/by-client-id/{clientId}
— `GET /v1/oauth/apps/by-client-id/{clientId}`.
- Access: Public
- Service:
https://api.axuz.net
Accepted authentication
No authentication (public route, or protected by link/signature).
— GET /v1/oauth/apps/by-client-id/{clientId}. Resolve o app pelo client_id e devolve o MarketplaceApp shape.
Por que existe: quando o backend redireciona o user pra ${AuthClientURL}/oauth/consent-legacy?client_id=..., a UI precisa resolver o app pra renderizar nome/ícone/scopes. Apps publicadas poderiam usar GET /v1/marketplace/apps/{slug}, mas (a) não temos slug aqui, só client_id, e (b) apps internas (is_published=false) também passam pelo flow de consent — então a UI precisa enxergá-las.
O shape devolvido é DELIBERADAMENTE o subset MarketplaceApp (sem client_secret, sem owner_user_id), pra não vazar dados de owner num endpoint público.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
clientId | path | string | yes |
Responses
200
TBD
429
Limite de requisições excedido.
| Name | Type | Required | Description |
|---|---|---|---|
error | string | yes |
500
Erro interno. Tente de novo com backoff; reporte o X-Request-Id.
| Name | Type | Required | Description |
|---|---|---|---|
error | string | yes |
Examples
"Try it" is turned off in this reference. Use the examples with your test credential.
curl
curl -sS -X GET 'https://api.axuz.net/v1/oauth/public/apps/by-client-id/CLIENT_ID'Node.js
const res = await fetch("https://api.axuz.net/v1/oauth/public/apps/by-client-id/CLIENT_ID", {
method: 'GET',
});
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/oauth/public/apps/by-client-id/CLIENT_ID",
timeout=30,
)
res.raise_for_status()
print(res.json())