1. Auth
gigstack API
  • Welcome to gigstack API
  • gigstack Connect API Guide
  • Migrar de API v1 a v2 de gigstack
  • Clients
    • Clients API Guide
    • List clients
      GET
    • Get client
      GET
    • Update client
      PUT
    • Create client
      POST
    • Validate client fiscal information
      POST
    • Get client customer portal access token
      POST
    • Stamp pending receipts
      POST
    • Delete client
      DELETE
    • Search clients
      GET
    • Upload CSF PDF to create or update client
      POST
    • Upload support document
      POST
    • List support documents
      GET
  • Services
    • Services API Guide
    • List services
      GET
    • Get service
      GET
    • Update service
      PUT
    • Create service
      POST
    • Delete service
      DELETE
  • Invoices
    • Invoices API Guide
    • Income
      • List income invoices
      • Create income invoice
      • Get income invoice
    • Egress
      • List egress invoices
      • Create egress invoice
      • Get egress invoice
    • Drafts
      • Create draft invoice (pre-factura)
      • Stamp draft invoice (finalize)
      • Generate draft preview PDF (pre-factura)
      • Delete draft invoice
      • Update draft invoice
      • Get draft invoice
      • List draft invoices
    • List CFDI errors
      GET
    • List payment complement invoices
      GET
    • Get payment complement invoice
      GET
    • Get invoice files
      GET
    • Upload support document
      POST
    • List support documents
      GET
    • Cancel invoice
      DELETE
    • Search invoices
      GET
    • List SAT invoices
      GET
    • Get a SAT invoice
      GET
    • Retry XML download
      POST
    • Generate PDF for a received SAT invoice
      POST
    • Resend invoice email
      POST
  • Payments
    • Payments API Guide
    • List payments
    • Get payment
    • Request payment
    • Register payment
    • Mark payment as paid
    • Refund payment
    • Cancel payment
    • Search payments
    • Update payment
    • Upload support document
    • List support documents
  • Receipts
    • Receipts API Guide
    • List receipts
    • Get receipt
    • Create receipt
    • Stamp receipt
    • Cancel receipt
    • Search receipts
  • Teams
    • Teams API Guide
    • List teams
    • Get team
    • Get team integrations
    • Get team series
    • Get team onboarding URL
    • Update team
    • Update team series
    • Update team settings
    • Create team
    • Add team member
    • Remove team member
    • Create team series
    • Delete team
    • Upload SAT CSD certificates
    • Sign manifest document
  • Users
    • Users API Guide
    • List users
    • Get user
    • Update user
    • Create user
    • Reset user password
    • Generate login link
  • Catalogs
    • Tax Regimes Catalog (Régimen Fiscal)
    • Payment Forms | Formas de pago
    • CFDI Usage Catalog (Uso CFDI)
    • Payment Methods Catalog (Método de Pago)
    • Months and Bimesters Catalog (Meses y Bimestres)
    • Invoice Relationships Catalog (Relación entre Facturas)
  • Webhooks
    • Webhooks
    • List webhooks
    • Create webhook
    • Get webhook
    • Update webhook
    • Delete webhook
  • Retentions
    • Retentions
    • List retentions
    • Create retention
    • Get retention
    • Cancel retention
    • Get retention files
  • Descarga Masiva SAT
    • Descarga Masiva
    • Check activation status
    • Activate Descarga Masiva SAT
    • Deactivate Descarga Masiva SAT
    • Upload FIEL credentials
    • Register business with SAT (manual)
    • Get schedule configuration
    • Save schedule configuration
    • Get download request history
    • Create bulk download request
    • Check download request status
    • Download XML package
    • Get single invoice from SAT
    • Debug registration status
    • Enable SAT sync
  • Auth
    • Headless signup (API-only path)
      POST
    • Health check
      GET
  • Apidog connectivity test
    GET
  • Schemas
    • Schemas
      • ApiResponse
      • Category
      • Pet
      • Tag
      • Order
      • StandardizedSuccessResponse
      • StandardizedErrorResponse
      • ApiErrorCode
    • RequestBodies
      • UserArray
    • SatInvoice
    • OrderDirection
    • DateRangeFilter
    • ListQueryParams
    • PaginationMeta
    • ApiPublicClient
    • Client
    • ApiPublicService
    • Service
    • PendingReceiptsSummary
    • ClientInput
    • ServiceInput
    • CfdiError
    • Invoice
    • DraftInvoiceInput
    • DraftInvoiceUpdateInput
    • DraftInvoiceOutput
    • InvoiceIncomeInput
    • InvoiceEgressInput
    • InvoiceInput
    • PaymentItem
    • PaymentAllowedMethod
    • ApiPublicPaymentProcessorDetails
    • ApiPublicPayment
    • Payment
    • PaymentInput
    • RequestPaymentInput
    • RegisterPaymentInput
    • RefundPaymentInput
    • MarkPaymentAsPaidInput
    • UpdatePaymentInput
    • ApiPublicIncomeInvoice
    • ApiPublicTeam
    • ApiPublicUser
    • ApiPublicWebhook
    • WebhookInput
    • WebhookUpdateInput
    • Team
    • TeamInput
    • TeamSettingsInput
    • TeamSettings
    • User
    • UserInput
    • SeriesInput
    • Series
    • ReceiptInput
    • ApiPublicSearch
    • ApiPublicThirdParty
    • ApiPublicInvoiceConfig
    • ApiPublicRefund
    • ApiPublicAutomations
    • TaxElement
    • ClientAddress
    • TaxSchema
    • StandardSuccessResponse
    • ListResponse
    • ErrorResponse
    • ValidationErrorResponse
    • UnauthorizedError
    • NotFoundError
    • InternalServerError
    • PaymentMethodEnum
    • PaymentFormEnum
    • AutomationTypeEnum
    • ItemSchema
    • SATDocument
    • UploadSupportDocumentInput
  1. Auth

Headless signup (API-only path)

POST
https://api.gigstack.io/v2/auth/signup
Create a complete gigstack account end-to-end without the alphav2 web UI.
Designed for AI agents and partner integrations: a single call provisions
a Firebase Auth user, billing account, team, plan subscription, and returns
live + test API keys.
Auth: This endpoint authenticates with X-Internal-API-Key (partner-issued),
NOT a normal Authorization: Bearer API token. Bearer tokens are scoped to a
team — a brand-new caller has none yet.
Idempotency: Idempotency-Key header (UUID v4) is required. Retries with
the same key return the cached response and never re-create resources.
Plan paths:
plan_id: "free" — direct Firestore write, no Stripe, instant activation.
Any paid plan — uses stripe.subscriptions.create with the supplied
PaymentMethod token (off-session). No Checkout redirect. billingAccount.haveAPIAccess
is set synchronously so the API gate passes on the first call.
RFC and FIEL: not required at signup. Defaults to RFC genérico
(XAXX010101000). Customers can later upload their own via
POST /v2/teams/{team_id}/sat-connection. Clients, payments, services,
receipts, and webhooks all work without FIEL.
API keys: returned in the response body once — not retrievable later.
The caller must store them immediately.

Request

Authorization
API Key
Add parameter in header
Authorization
Example:
Authorization: ********************
or
Header Params

Body Params application/jsonRequired

Examples

Responses

🟢201Created
application/json
Account created successfully
Bodyapplication/json

🟠400Bad Request
🟠401Unauthorized
🟠402
🟠409
🔴500Server Error
🔴503Service Unavailable
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://api.gigstack.io/v2/auth/signup' \
--header 'X-Internal-API-Key;' \
--header 'Idempotency-Key;' \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "email": "agent@example.com",
    "name": "Agent Builder Inc",
    "rfc": "XAXX010101000",
    "country": "MEX",
    "plan_id": "agent-tier",
    "billing_cycle": "monthly",
    "stripe_payment_method": "pm_1Q...",
    "livemode": true,
    "partner_ref": "SANTIAGO-A7K9",
    "metadata": {
        "source": "my-agent-cli"
    }
}'
Response Response Example
{
    "user_id": "aJGZiWGWQGfZEZk9XbtShj3pxBx2",
    "team_id": "team_xxx",
    "billing_account_id": "ba_xxx",
    "subscription": {
        "id": "sub_1Q...",
        "status": "active",
        "current_period_end": 1740000000
    },
    "api_keys": {
        "live": "eyJhbGciOi...",
        "test": "eyJhbGciOi..."
    },
    "next_steps": {
        "fiel_upload_url": "POST /v2/teams/{team_id}/sat-connection",
        "manifest_sign_url": "POST /v2/teams/{team_id}/manifest/sign",
        "note": "RFC and FIEL only required for CFDI invoicing. Clients, payments, services, receipts, and webhooks all work without them."
    }
}
Modified at 2026-05-21 19:38:45
Previous
Enable SAT sync
Next
Health check
Built with