Obter app
curl --request GET \
--url https://api.upag.io/v1/apps/{appId} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.upag.io/v1/apps/{appId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://api.upag.io/v1/apps/{appId}';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));Apps
Obter app
Consulta um app pelo ID
GET
https://api.upag.io
/
v1
/
apps
/
{appId}
Obter app
curl --request GET \
--url https://api.upag.io/v1/apps/{appId} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.upag.io/v1/apps/{appId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://api.upag.io/v1/apps/{appId}';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));Permissão:
app.read (chave secreta).
Endpoint
curl https://api.upag.dev/v1/apps/b7c8d9e0-f1a2-4b3c-8d4e-5f6a7b8c9d01 \
-H "Authorization: Bearer sk_test_your_api_key"
import { Upag } from 'upag';
const upag = new Upag('sk_test_your_api_key');
const app = await upag.apps.retrieve('b7c8d9e0-f1a2-4b3c-8d4e-5f6a7b8c9d01');
Em produção use
https://api.upag.io/v1 com sk_live_....Parâmetros
string (uuid)
required
ID do app.
Resposta
200 OK — segredos em config vêm mascarados.
Response
{
"id": "b7c8d9e0-f1a2-4b3c-8d4e-5f6a7b8c9d01",
"type": "integration",
"provider": "meta",
"scope": "public",
"name": "Meta Pixel",
"config": { "pixelId": "123456789", "accessToken": "********oken" },
"active": true,
"appliesTo": "all",
"appliesToProducts": null,
"createdAt": "2026-03-18T11:30:00.000Z",
"updatedAt": "2026-03-18T11:30:00.000Z"
}
404 (APP_NOT_FOUND) se o app não existir ou pertencer a outra conta.