Skip to content
LA CRYPTADOCS / 01

API playground

Try endpoints with Nostr login, organization scope, and automatic CSRF.

API playground

The interactive playground runs published operations without requiring a client. It works with the browser session, selected tenant, and production security controls.

Connect

  1. Open the playground on the same host as the application.
  2. Select Connect with Nostr.
  3. Choose an available NIP-07 extension or NIP-46 connection.
  4. Review the host, method, and organization in the signature request.
  5. Confirm the active slug and displayed role.

The session is stored in an HttpOnly cookie; the playground does not need to read or display a JWT. For mutations, it obtains and sends a CSRF token automatically.

You can also paste an API key and its organization slug. The value remains in memory only until the page reloads, is sent without cookies or a Nostr session, and enables only operations marked with a key permission. Mutations still require Enable writes and risk confirmations.

Run an operation

  1. Filter by tag, path, or description.
  2. Read audience, minimum role, and possible effects.
  3. Fill organizationSlug and path parameters.
  4. Add query parameters and body according to the schema.
  5. Review the generated request, especially host and IDs.
  6. Run it and inspect status, headers, and JSON.
  7. After a write, read the affected resource again.

Example values are illustrative. Replace them with IDs from the same tenant and never paste credentials, nsec, cookies, preimages, or real ticket codes.

Public operations

Checkout, registration, coupon, and some reads can be tested without a session. They still require organizationSlug and, where applicable, eventSlug. Use a test email and a non-production Event to avoid consuming real capacity.

Protected operations

A 401 means the session is missing or expired. A 403 on a mutation commonly requires refreshing CSRF or correcting the origin. A 404 may mean the resource is not visible to the current membership and role. The playground does not elevate permissions and must not offer operations outside the tenant’s public documentation.

Security checklist

  • I am on the correct organization and host.
  • I understand the role and effect of the operation.
  • IDs belong to the same tenant.
  • I use test data for sends and payments.
  • I did not include secrets in body, query, or screenshots.
  • I know how to verify or reverse the result.

Common errors

ResultWhat to check
400JSON, types, required fields, and date format
401Login, session expiry, or an invalid/expired/revoked key
403CSRF, origin, a missing key permission, or an action forbidden in the current mode
404Slug, ID, membership, and role within the organization
409Capacity, state, identity, uniqueness, or a repeat
429Wait for Retry-After and reduce frequency

When automating after a test, copy structure and fields—not cookies or inspector secrets.