Portal do Programador

Documentação da API, autenticação e guias de integração

URL Base
Todos os pedidos à API devem ser feitos para o seguinte URL base:
https://your-domain.com
Authentication
GET
/api/auth/me

Get current authenticated user

Auth
GET
/api/csrf

Get CSRF token for form submissions

Public
Collections
GET
/api/v1/collections/invoices

List invoices for the authenticated tenant

collections:read
Auth
POST
/api/v1/collections/invoices

Create a new invoice

collections:write
Auth
Tenant Management
POST
/api/tenant/select

Select active tenant context

Auth
GET
/api/tenant/access-matrix

Get access control matrix for current tenant

Auth
GET
/api/tenant/entitlements/limit

Check entitlement limits and usage

Auth
PATCH
/api/tenant/entitlements/toggle

Toggle module entitlements

Auth
GET
/api/tenant/notifications

Get tenant notifications

Auth
Support
GET
/api/tickets

List support tickets

tickets:read
Auth
POST
/api/tickets

Create a new support ticket

tickets:write
Auth
Contracts & Billing
GET
/api/contract-requests

List contract change requests

Auth
POST
/api/contract-requests

Submit a contract change request

Auth
POST
/api/invoices/preview

Preview invoice before generation

Auth
Catalog
GET
/api/catalog/public

Get public catalog of apps, modules, and plans

Public
Health
GET
/api/health

Basic health check

Public
GET
/api/health/ready

Readiness probe

Public
GET
/api/health/live

Liveness probe

Public
Webhooks (Incoming)
POST
/api/webhooks/stripe

Stripe webhook handler for payment events

Public