Skip to content

Accounts API

GET /admin/accounts

Query Parameters:

ParameterTypeDescription
app_keystringFilter by application key
providerstringFilter by provider name

Example:

Terminal window
curl "https://ingest.transyt.com/admin/accounts?provider=stripe" \
-H "X-Admin-Token: YOUR_ADMIN_TOKEN"

Response:

[
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"provider": "stripe",
"account_slug": "my-app",
"app_key": "my-app",
"org_id": null,
"delivery_url": "https://my-app.com/webhooks/transyt",
"enabled": true,
"skip_signature_verification": false
}
]
POST /admin/accounts

Request Body:

FieldTypeRequiredDescription
providerstringYesProvider name (e.g., stripe, mailgun)
account_slugstringYesUnique identifier within the provider (max 100 chars)
app_keystringYesApplication key for grouping accounts (max 50 chars)
org_idstringNoOrganization identifier (max 100 chars)
signing_secret_currentstringNoActive signing secret
signing_secret_previousstringNoPrevious secret for rotation
skip_signature_verificationbooleanNoSkip signature verification (default: false)
delivery_urlstringNoURL to deliver events to (max 500 chars)
delivery_secretstringNoSecret for signing deliveries
project_idstringNoProject identifier
project_delivery_urlstringNoFallback delivery URL
project_delivery_secretstringNoFallback delivery secret
enabledbooleanNoWhether the account is active (default: true)

Example:

Terminal window
curl -X POST https://ingest.transyt.com/admin/accounts \
-H "X-Admin-Token: YOUR_ADMIN_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"provider": "stripe",
"account_slug": "my-app",
"app_key": "my-app",
"signing_secret_current": "whsec_...",
"delivery_url": "https://my-app.com/webhooks/transyt",
"delivery_secret": "my-secret"
}'
PATCH /admin/accounts/{account_id}

Accepts the same fields as create. Only included fields are updated.

Example:

Terminal window
curl -X PATCH https://ingest.transyt.com/admin/accounts/{account_id} \
-H "X-Admin-Token: YOUR_ADMIN_TOKEN" \
-H "Content-Type: application/json" \
-d '{"delivery_url": "https://new-url.com/webhooks"}'
DELETE /admin/accounts/{account_id}

Example:

Terminal window
curl -X DELETE https://ingest.transyt.com/admin/accounts/{account_id} \
-H "X-Admin-Token: YOUR_ADMIN_TOKEN"

Test that a delivery URL is reachable:

POST /admin/accounts/{account_id}/test-delivery

Example:

Terminal window
curl -X POST https://ingest.transyt.com/admin/accounts/{account_id}/test-delivery \
-H "X-Admin-Token: YOUR_ADMIN_TOKEN"

Returns a success or error response indicating whether the delivery URL is accessible.