Listar layouts de checkout
curl --request GET \
--url https://api.upag.io/v1/checkout/layouts \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.upag.io/v1/checkout/layouts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://api.upag.io/v1/checkout/layouts';
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));Layouts de checkout
Listar layouts de checkout
Lista os layouts da conta, do mais novo para o mais antigo
GET
https://api.upag.io
/
v1
/
checkout
/
layouts
Listar layouts de checkout
curl --request GET \
--url https://api.upag.io/v1/checkout/layouts \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.upag.io/v1/checkout/layouts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://api.upag.io/v1/checkout/layouts';
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:
checkout_layout.read (chave secreta).
Endpoint
curl -G https://api.upag.dev/v1/checkout/layouts \
-H "Authorization: Bearer sk_test_your_api_key" \
-d "page=1" \
-d "limit=15"
import { Upag } from 'upag';
const upag = new Upag('sk_test_your_api_key');
const { data, count } = await upag.checkoutLayouts.list({ page: 1, limit: 15 });
Em produção use
https://api.upag.io/v1 com sk_live_....Parâmetros
integer
default:"1"
Página (mínimo 1).
integer
default:"15"
Itens por página (mínimo 1).
Resposta
200 OK — cada item segue a estrutura do layout.
Response
{
"data": [
{
"id": "c1d2e3f4-5a6b-4c7d-8e9f-0a1b2c3d4e5f",
"name": "Tema escuro",
"theme": { "radius": "0.65rem", "background": "oklch(0.985 0 0)", "...": "demais chaves do tema" },
"favicon": null,
"desktop": null,
"mobile": null,
"createdAt": "2026-03-18T11:15:00.000Z",
"updatedAt": "2026-03-18T11:15:00.000Z"
}
],
"count": 1
}