Heads up: Our Discord server was banned. We've moved — join the new one to keep using the bots.Join New Server →

Bojangles API

Generate Bojangles accounts via OloAuth + Braze + Sparkfly, with one-time-password retrieval — over the unified AutoMunch generation API.

Overview

The Bojangles API is part of AutoMunch's unified generation API — the same endpoints work for every brand, you just set brand to bojangles. OTP retrieval is supported for sign-in.

Base URL

https://api.automunch.site

Brand valueAliasesCostOTPNotes
bojanglesbojan1 creditOloAuth + Braze + Sparkfly. OTP available

Authentication

Bearer token in the Authorization header. Keys are prefixed am_live_ and minted with /api_key on Discord.

Authorization Header
Authorization: Bearer am_live_your_key_here

Async Jobs

Generation runs as a background job. POST /v1/gen returns 202 with a job; poll GET /v1/jobs/{id} until completed.

Developer Snapshot

GET /v1/me Key, credits, settings
Request
curl -H "Authorization: Bearer am_live_..." \
  https://api.automunch.site/v1/me
200 Response
{ "owner_user_id": "123456789012345678", "credits": 25,
  "settings": { "bojan_ready": true }, "brands": ["whataburger", "bojangles", "ubereats"] }

Generate Accounts

POST /v1/gen Start a Bojangles generation job

Set brand to bojangles.

FieldTypeRequiredNotes
brandstringYesbojangles or bojan
amountintegerYesAccounts to generate
customer_refstringNoYour customer identifier
Request
curl -X POST \
  -H "Authorization: Bearer am_live_..." \
  -H "Content-Type: application/json" \
  -d '{"brand": "bojangles", "amount": 1, "customer_ref": "discord:123"}' \
  https://api.automunch.site/v1/gen
Python
import requests
H = {"Authorization": "Bearer am_live_..."}
r = requests.post("https://api.automunch.site/v1/gen", headers=H,
                  json={"brand": "bojangles", "amount": 1})
print(r.json()["job"]["job_id"])
202 Response
{ "job": { "job_id": "9f7b...555", "brand": "bojangles", "amount": 1, "status": "queued" } }

Poll Job Status

GET /v1/jobs/{job_id} Status & result
Completed Job
{
  "job": {
    "job_id": "9f7b...555", "brand": "bojangles", "status": "completed",
    "result": {
      "generated_count": 1, "failed_count": 0,
      "accounts": [
        { "id": 1842, "brand": "bojangles", "email": "example@domain.com",
          "phone": "5551234567", "first_name": "James", "last_name": "Smith",
          "member_uuid": "abc-123", "rewards": [] }
      ],
      "credits_remaining": 24
    }
  }
}

List Accounts

GET /v1/accounts?brand=bojangles Accounts you created
Request
curl -H "Authorization: Bearer am_live_..." \
  "https://api.automunch.site/v1/accounts?brand=bojangles"

Fetch OTP

POST /v1/accounts/{account_id}/otp Sign-in code

Use the account's id from the generation result.

Request
curl -X POST \
  -H "Authorization: Bearer am_live_..." \
  -H "Content-Type: application/json" \
  -d '{"brand": "bojangles"}' \
  https://api.automunch.site/v1/accounts/1842/otp
200 Response
{ "account_id": 1842, "brand": "bojangles", "email": "example@domain.com", "otp": "123456" }

Error Codes

StatusErrorMeaning
401unauthorizedMissing, invalid, or revoked API key.
402insufficient_creditsNot enough credits.
400settings_requiredConfigure /settings before generating.
409active_job_existsYou already have a running job.
504otp_not_foundNo OTP within the polling window.