AccsBulk API
Integrate with AccsBulk programmatically. Browse listings, purchase accounts, and manage orders through our RESTful API.
Introduction
The AccsBulk API is a RESTful API that uses JSON for request and response bodies. All endpoints are prefixed with /api/v1 and all of them require an API key.
๐ฆ Response Format
Every response carries a boolean success. On success the payload is in data; on failure you get a machine-readable error_code and a human-readable message. Branch on success and error_code, never on the wording of message โ that text can change.
{
"success": true,
"data": { ... },
"meta": { ... } // paginated endpoints only
}
{
"success": false,
"error_code": "insufficient_stock",
"message": "Insufficient stock. Available: 12",
"errors": { ... } // validation failures only (422)
}
โ ๏ธ One exception
Authentication failures (401 / 403) are produced before the request reaches the API and return only success and message โ no error_code. Treat a missing error_code on a 401/403 as an auth problem.
๐ต Money & dates
All monetary values are returned as strings with two decimals ("5.00") so no precision is lost in JSON parsing โ convert them yourself before arithmetic. Dates are noted per endpoint: some are full ISO 8601 timestamps, some are date-only YYYY-MM-DD.
Authentication
The API uses API key authentication. Generate a key from your dashboard and send it in the X-API-Key header on every request. There is no OAuth flow and no session โ the header is the whole of it.
๐ API Key Header
Include in all requests:X-API-Key: YOUR_API_KEY
โ ๏ธ Key Security
Your API key is shown only once when created โ we store only a SHA-256 hash and cannot recover it for you. Store it securely. You can hold up to 5 keys and set an optional expiry on each from your API Details dashboard. AccsBulk keys begin with acb_.
A request is rejected before it reaches any endpoint if any of the following is true:
| Status | Reason |
|---|---|
| 401 | No X-API-Key header was sent. |
| 401 | The key is unknown, revoked, or past its expiry date. |
| 403 | The key does not belong to this platform. |
| 403 | API access is not enabled on your account โ contact support. |
| 403 | Your account has been deactivated. |
Pagination
Four endpoints return collections. Each adds a meta object alongside data, and each takes a page query parameter.
| Endpoint | Page size | Adjustable? |
|---|---|---|
GET /api/v1/categories | 20 | Yes โ per_page, max 100 |
GET /api/v1/categories/{id}/subcategories | 20 | Yes โ per_page, max 100 |
GET /api/v1/listings | 20 | Yes โ per_page, max 100 |
GET /api/v1/orders | 20 | Yes โ per_page, max 50 |
๐ The meta block
current_page โ the page you are on ยท per_page โ rows in this page ยท last_page โ highest page number ยท total โ rows matching your filters across all pages. Keep requesting page+1 until current_page === last_page.
๐ก Use per_page=100 on the catalogue
The three catalogue endpoints return 20 rows by default and up to 100 with ?per_page=. Larger values are capped, not rejected, and anything that is not a positive whole number means the default โ meta.per_page always tells you the size you got. With the catalogue limited to 15 requests a minute, per_page=100 is how to mirror it: 1,500 listings a minute instead of 300.
๐ Walking every page safely
Results are ordered on a unique tiebreaker, so paging through the whole catalogue visits every row exactly once โ no duplicates, no silently skipped rows. A page requested beyond last_page returns an empty data array rather than an error. Note that listings are live inventory: stock and prices can change between page 1 and page 62.
Rate Limiting
Every limit is per account: shared by all of your API keys and every server you call from. Purchases are never rate limited.
| Endpoint | Limit |
|---|---|
GET /api/v1/categories | 15 / minute (catalogue) |
GET /api/v1/categories/{id}/subcategories | 15 / minute (catalogue) |
GET /api/v1/listings | 15 / minute (catalogue) |
GET /api/v1/listings/{slug} | 15 / minute (catalogue) |
GET / PUT /api/v1/user/profile, GET /api/v1/user/balance, GET /api/v1/orders, GET /api/v1/orders/{id} | 120 / minute, all together (account) |
POST /api/v1/promo/validate | 20 / minute (separate budget) |
POST /api/v1/purchase | Not limited |
Requests with a missing or wrong API key are limited to 20 a minute per IP address (too_many_invalid_keys). | |
๐ชฃ One bucket per account
The 15 catalogue requests are shared across all four catalogue endpoints and across all of your API keys. The bucket is keyed to your account, not to the key or to your IP address, so rotating keys or calling from several servers does not raise your ceiling โ and another reseller sharing your datacentre's IP can never consume your allowance.
โฑ๏ธ Rolling window
The window is a rolling 60 seconds from your first counted request, not a clock minute. Read Retry-After on a 429 for the exact number of seconds to wait โ do not assume 60.
๐ง Cool-down: wait for Retry-After
On the catalogue endpoints, requests made while you are already limited make the wait longer: each one adds 60 seconds to Retry-After, up to 5 minutes. A client that waits the number of seconds it is given is never penalised; a client that keeps retrying can lock itself out for 5 minutes.
Retry-After: 44
X-RateLimit-Limit: 15
X-RateLimit-Remaining: 0
{
"success": false,
"error_code": "rate_limit_exceeded",
"message": "Rate limit exceeded. Catalogue endpoints allow 15 requests per minute. Retry after 44 seconds."
}
๐ก Staying under the limit
Cache categories and subcategories โ they change rarely. To mirror the full catalogue, walk /listings with ?per_page=100 rather than fetching /listings/{slug} per item, and pass ?include=description so one pass gives you everything. At 100 rows a page and 15 requests a minute you can read 1,500 listings per minute. Catalogue answers are cached on our side for up to 5 minutes, so polling the same page more often than that returns the same data.
Errors & Status Codes
The API uses standard HTTP status codes. Where a failure is specific to the API, an error_code string accompanies it โ branch on that rather than on the status code alone.
| Code | Meaning | Description |
|---|---|---|
| 200 | OK | Request succeeded |
| 201 | Created | Purchase completed and the order was created |
| 400 | Bad Request | Business rule rejected the request (stock, balance, promo) |
| 401 | Unauthorized | Missing, unknown, revoked or expired API key |
| 403 | Forbidden | API access disabled, account deactivated, or key not valid for this platform |
| 404 | Not Found | Category, listing or order does not exist (or is not yours) |
| 409 | Conflict | client_reference already used by a different account |
| 422 | Validation Error | Request body failed validation โ see the errors object |
| 429 | Too Many Requests | A rate limit was hit โ see Rate Limiting |
| 500 | Server Error | Internal error โ safe to retry a read; see the note below for purchases |
| error_code | Status | What it means |
|---|---|---|
validation_failed | 422 | Body failed validation. The errors object lists the offending fields. |
category_not_found | 404 | No active main category with that ID. |
listing_not_found | 404 | No active listing with that slug. |
listing_unavailable | 404 | The listing you tried to purchase is no longer on sale. |
insufficient_stock | 400 | Fewer units in stock than requested. The response includes available and requested. |
insufficient_accounts | 400 | Stock count and deliverable accounts disagree; fewer accounts could actually be handed over. Retry with a smaller quantity. |
insufficient_balance | 400 | Your balance does not cover the order. Top up and retry. |
promo_invalid | 400 | Promo code is invalid or no longer available. The reason is deliberately not disclosed. |
client_reference_conflict | 409 | That client_reference UUID belongs to another account's order. Generate a fresh UUID. |
order_not_found | 404 | No such order, or it belongs to another account. |
rate_limit_exceeded | 429 | A catalogue, account or promo limit was hit. Wait Retry-After seconds โ on the catalogue, requests made before then extend the wait. |
too_many_invalid_keys | 429 | Too many requests with a missing or wrong API key from your IP address. Wait Retry-After seconds. |
profile_update_failed | 500 | Profile could not be saved. |
promo_validation_failed | 500 | Promo check could not be completed. |
internal_error | 500 | Unexpected failure during a purchase. See the warning below. |
โ Retrying a failed purchase
A purchase is executed inside a database transaction, so a 4xx or 500 means nothing was charged and no accounts were handed over. A timeout or dropped connection is different โ the order may have completed after you stopped listening. Always send a client_reference on /purchase so a retry returns the original order instead of buying twice. See the Purchase endpoint for details.
Response Headers
Headers worth reading on every response.
| Header | On | Meaning |
|---|---|---|
X-Request-Id | Every response | A UUID identifying this exact call in our logs. Log it. Quoting it in a support ticket lets us find the precise request rather than guessing from a timestamp. |
X-RateLimit-Limit | Catalogue and account endpoints | Your ceiling for the window โ 15 on the catalogue, 120 on profile, balance and orders. |
X-RateLimit-Remaining | Catalogue and account endpoints | Requests left in the current window. Slow down as this nears zero. |
Retry-After | 429 only | Seconds to wait before your next request will be accepted. On the catalogue, requests made before then extend it. |
X-Catalogue-Cache | Catalogue endpoints | HIT or MISS โ whether the answer came from our cache (at most 5 minutes old). STALE means a slightly older copy was served while a fresh one is prepared. |
โน๏ธ Note
The X-RateLimit-* headers appear on the catalogue and account endpoints. Their absence on /purchase is expected โ purchases have no limit to report.
User Endpoints
Read and update your account profile, and check your spendable balance. These share one 120 requests/minute account budget with the order lookups.
Retrieve your account profile, including the balance the API will spend on purchases. Fields you have never filled in come back as null rather than being omitted.
๐ API Key Required
Include X-API-Key: YOUR_API_KEY header.
curl https://accsbulk.com/api/v1/user/profile \ -H "X-API-Key: YOUR_API_KEY"
{
"success": true,
"data": {
"id": 20,
"name": "John",
"lname": "Doe",
"email": "[email protected]",
"phone": "+1234567890",
"address": "123 Main St",
"country": "US",
"balance": "86.00",
"skype": null,
"telegram": "@johndoe",
"whatsApp": null,
"member_since": "2023-10-03T00:00:00.000000Z"
}
}Update your profile. Every field is optional โ send only the ones you want to change; omitted fields are left untouched. Email cannot be changed through the API.
๐ API Key Required
Include X-API-Key: YOUR_API_KEY header.
| Name | Type | Required | Description |
|---|---|---|---|
| name | string | Optional | First name (max 255) |
| lname | string | Optional | Last name (max 255) |
| phone | string | Optional | Phone number (max 20) |
| address | string | Optional | Address (max 500) |
| country | string | Optional | Country (max 100) |
| skype | string | Optional | Skype handle (max 255) |
| telegram | string | Optional | Telegram handle (max 255) |
| string | Optional | WhatsApp number (max 255). Note the capital A. |
curl -X PUT https://accsbulk.com/api/v1/user/profile \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"John","phone":"+1234567890"}'
{
"success": true,
"message": "Profile updated successfully"
}{
"success": false,
"error_code": "validation_failed",
"message": "Validation failed",
"errors": {
"phone": ["The phone must not be greater than 20 characters."]
}
}Get your current spendable balance. This is the figure a purchase is checked against. Cheaper than /user/profile if balance is all you need. Counts toward the 120 requests/minute account budget โ plenty to check before each order.
๐ API Key Required
Include X-API-Key: YOUR_API_KEY header.
curl https://accsbulk.com/api/v1/user/balance \ -H "X-API-Key: YOUR_API_KEY"
{
"success": true,
"data": {
"balance": "86.00"
}
}Category Endpoints
Browse the category tree. Both endpoints return 20 per page by default (up to 100 with per_page) and share the 15 requests/minute catalogue limit. Categories change rarely โ cache them.
Retrieve active main categories, 20 per page by default (per_page up to 100). Disabled categories are never returned. Use the id from here as the category_id filter on /listings.
๐ API Key Required
Include X-API-Key: YOUR_API_KEY header.
โฑ๏ธ Rate limited โ 15 requests/minute
Shares one per-account bucket with the other three catalogue endpoints. Requests made while limited extend the wait. See Rate Limiting.
| Name | Type | Required | Description |
|---|---|---|---|
| per_page | integer | Optional | Rows per page (default: 20, max: 100). Values above 100 are capped, not rejected. |
| page | integer | Optional | Page number (default: 1) |
curl "https://accsbulk.com/api/v1/categories?page=1" \ -H "X-API-Key: YOUR_API_KEY"
{
"success": true,
"data": [
{
"id": 22,
"title": "Facebook Accounts",
"slug": "buy-facebook-accounts",
"image": "https://accszone.com/uploads/facebook.png"
}
],
"meta": {
"current_page": 1,
"last_page": 4,
"per_page": 20,
"total": 66
}
}List active subcategories under one main category, 20 per page by default (per_page up to 100). The meta block describes data.subcategories โ the category object is not paginated. Disabled subcategories are never returned.
๐ API Key Required
Include X-API-Key: YOUR_API_KEY header.
โฑ๏ธ Rate limited โ 15 requests/minute
Shares one per-account bucket with the other three catalogue endpoints. Requests made while limited extend the wait. See Rate Limiting.
| Name | Type | Required | Description |
|---|---|---|---|
| id | integer | Required | Main category ID (URL segment) |
| per_page | integer | Optional | Rows per page (default: 20, max: 100). Values above 100 are capped, not rejected. |
| page | integer | Optional | Page number (default: 1) |
curl https://accsbulk.com/api/v1/categories/22/subcategories \ -H "X-API-Key: YOUR_API_KEY"
{
"success": true,
"data": {
"category": { "id": 22, "title": "Facebook Accounts" },
"subcategories": [
{ "id": 129, "title": "USA Facebook", "slug": "buy-usa-facebook-accounts" },
{ "id": 146, "title": "Facebook With Friends", "slug": "facebook-accounts-with-friends" }
]
},
"meta": {
"current_page": 1,
"last_page": 1,
"per_page": 20,
"total": 15
}
}{
"success": false,
"error_code": "category_not_found",
"message": "Category not found"
}Listing Endpoints
Browse live inventory. Both endpoints are rate limited at 15 requests/minute (shared with the category endpoints). Answers are cached for up to 5 minutes and stock and prices change constantly โ treat what you read as a hint, and let /purchase (always live) be the authority.
Browse active listings with filtering, search and sorting. 20 per page by default, up to 100 with per_page. Listings with zero stock are still returned; check available_stock before purchasing.
๐ API Key Required
Include X-API-Key: YOUR_API_KEY header.
โฑ๏ธ Rate limited โ 15 requests/minute
Shares one per-account bucket with the other three catalogue endpoints. Requests made while limited extend the wait. See Rate Limiting.
| Name | Type | Required | Description |
|---|---|---|---|
| category_id | integer | Optional | Filter by main category ID |
| subcategory_id | integer | Optional | Filter by subcategory ID |
| search | string | Optional | Case-insensitive substring match on the listing title |
| sort | string | Optional | sort_key (default), total_price, available_stock or title. Any other value falls back to sort_key. |
| direction | string | Optional | asc (default) or desc |
| include | string | Optional | Comma-separated extras. Only description is supported. Omitted by default because descriptions are large. |
| per_page | integer | Optional | Rows per page (default: 20, max: 100). Values above 100 are capped, not rejected. |
| page | integer | Optional | Page number (default: 1) |
curl "https://accsbulk.com/api/v1/listings?category_id=22&search=facebook&per_page=100&page=1" \ -H "X-API-Key: YOUR_API_KEY"
{
"success": true,
"data": [
{
"id": 623,
"title": "GMX Accounts | 2 Days to 2 Weeks Old",
"slug": "gmx-accounts-2-days-to-2-weeks-old-fresh",
"price": "0.44",
"available_stock": 1433,
"sold": 1066,
"sort_key": 0,
"category": { "id": 35, "title": "GMX Email Accounts", "slug": "buy-gmx-accounts" },
"subcategory": { "id": 54, "title": "Mail", "slug": "mail" }
}
],
"meta": {
"current_page": 1,
"last_page": 62,
"per_page": 20,
"total": 1238
}
}Get one listing by slug. Identical to a row from /listings plus description and supplier. If you are syncing many listings, use /listings with ?include=description&per_page=100 instead โ one request per 100 listings rather than one per listing.
๐ API Key Required
Include X-API-Key: YOUR_API_KEY header.
โฑ๏ธ Rate limited โ 15 requests/minute
Shares one per-account bucket with the other three catalogue endpoints. Requests made while limited extend the wait. See Rate Limiting.
| Name | Type | Required | Description |
|---|---|---|---|
| slug | string | Required | Listing slug (URL segment) โ the slug field from /listings, not the numeric id |
curl https://accsbulk.com/api/v1/listings/hotmail-accounts-pop3-smtp-imap-activated \ -H "X-API-Key: YOUR_API_KEY"
{
"success": true,
"data": {
"id": 64,
"title": "Buy Hotmail/Outlook Accounts | POP3, SMTP, IMAP Enabled",
"slug": "hotmail-accounts-pop3-smtp-imap-activated",
"price": "0.10",
"available_stock": 6200,
"sold": 17638,
"sort_key": 1,
"category": { "id": 28, "title": "Outlook Email Accounts", "slug": "buy-outlook-accounts" },
"subcategory": { "id": 44, "title": "POP3", "slug": "new-hotmail-outlook-accounts" },
"description": "<p>Looking for high-quality Outlook accounts...</p>",
"supplier": { "name": "AccsBulk" }
}
}{
"success": false,
"error_code": "listing_not_found",
"message": "Listing not found"
}Order Endpoints
Place orders and read your order history. Purchases are never rate limited โ you will never be told to slow down while buying. Order lookups share the 120 requests/minute account budget.
Purchase accounts from a listing. The cost is deducted from your balance and the credentials are returned in the same response โ there is no separate fulfilment step. The whole operation runs in one database transaction: either you are charged and receive the accounts, or nothing happens at all.
๐ API Key Required
Include X-API-Key: YOUR_API_KEY header.
| Name | Type | Required | Description |
|---|---|---|---|
| ad_id | integer | Required | Listing ID (the id field from /listings, not the slug) |
| quantity | integer | Required | How many accounts to buy (minimum 1) |
| promo_code | string | Optional | Promotional code. An invalid code fails the whole purchase โ validate it first with /promo/validate. |
| client_reference | uuid | Optional | Idempotency key. A UUID you generate. Retrying with the same value returns the original order instead of buying again. Strongly recommended. |
- ๐ Always send a client_reference โ Generate a fresh UUID v4 per intended purchase and reuse it on every retry of that purchase. Without one, a network timeout leaves you unable to tell whether the order went through โ and a blind retry buys twice. With one, the retry returns the original order and charges nothing. A successful first call answers
201; a replay answers200with"replayed": true, so you can distinguish them. Two simultaneous retries are safe: one wins and the other is handed the winner's order. - ๐ฆ Account format โ The
accountsarray contains raw credential strings exactly as the supplier provided them. The separator and field order vary per listing โ many areemail:password, others add tokens, e.g.email:password:refresh_token:client_id. The listing description states the format. Do not assume a fixed shape across listings. - ๐ Refunded or replaced accounts โ On a purchase retry, credentials for accounts that have since been refunded or replaced are returned as
********. Retrying does not restore access to those accounts. - โ ๏ธ Failures โ
insufficient_stock(400) includesavailableandrequestedso you can retry smaller.insufficient_accounts(400) means stock said more than could actually be delivered.insufficient_balance(400) means top up first.listing_unavailable(404) means the listing was pulled from sale. In every one of these cases you have not been charged.
curl -X POST https://accsbulk.com/api/v1/purchase \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"ad_id":64,"quantity":2,"client_reference":"3f8a1c22-9e4b-4f2a-bd51-0c7e5a9d1234"}'
{
"success": true,
"message": "Purchase successful",
"data": {
"order_id": 42,
"listing": "Buy Hotmail/Outlook Accounts",
"quantity": 2,
"amount": "0.20",
"discount": "0.00",
"new_balance": "85.80",
"accounts": [
"[email protected]:password123",
"[email protected]:password456"
],
"purchased_at": "2026-10-07T14:30:00+00:00"
}
}{
"success": true,
"message": "Purchase already processed for this client_reference",
"data": {
"order_id": 42,
"listing": "Buy Hotmail/Outlook Accounts",
"quantity": 2,
"amount": "0.20",
"discount": "0.00",
"new_balance": "85.80",
"accounts": ["[email protected]:password123", "[email protected]:password456"],
"purchased_at": "2026-10-07T14:30:00+00:00",
"replayed": true
}
}List your orders, newest first, with per_page up to 50. Credentials are not included here โ fetch them from /orders/{id}.
๐ API Key Required
Include X-API-Key: YOUR_API_KEY header.
| Name | Type | Required | Description |
|---|---|---|---|
| per_page | integer | Optional | Rows per page (default: 20, max: 50). Values above 50 are capped, not rejected. |
| page | integer | Optional | Page number (default: 1) |
- ๐
Date format differs from /purchase โ
purchased_athere and on/orders/{id}is date-only (YYYY-MM-DD). The/purchaseresponse returns a full ISO 8601 timestamp. If you need the exact time of an order, record it from the purchase response โ it is not recoverable from the history endpoints. - โฉ๏ธ Refunds โ
is_refundistruewhen the order has been refunded. Theamountstays at the original value; it is not negated.
curl "https://accsbulk.com/api/v1/orders?per_page=50" \ -H "X-API-Key: YOUR_API_KEY"
{
"success": true,
"data": [
{
"id": 42,
"listing": "Buy Hotmail/Outlook Accounts",
"category": "Outlook Email Accounts",
"subcategory": "POP3",
"quantity": 2,
"amount": "0.20",
"discount": "0.00",
"is_refund": false,
"purchased_at": "2026-10-07"
}
],
"meta": {
"current_page": 1,
"last_page": 3,
"per_page": 50,
"total": 125
}
}Get one order including the purchased credentials. Refunded or replaced accounts return ******** instead of access details; active accounts remain available. The accounts array keeps the same number of entries. Orders belonging to other accounts return 404, not 403.
๐ API Key Required
Include X-API-Key: YOUR_API_KEY header.
| Name | Type | Required | Description |
|---|---|---|---|
| id | integer | Required | Order ID (URL segment) |
curl https://accsbulk.com/api/v1/orders/42 \ -H "X-API-Key: YOUR_API_KEY"
{
"success": true,
"data": {
"id": 42,
"listing": "Buy Hotmail/Outlook Accounts",
"category": "Outlook Email Accounts",
"subcategory": "POP3",
"quantity": 2,
"amount": "0.20",
"discount": "0.00",
"is_refund": false,
"accounts": [
"[email protected]:password123",
"[email protected]:password456"
],
"purchased_at": "2026-10-07"
}
}{
"success": false,
"error_code": "order_not_found",
"message": "Order not found"
}Promo Endpoints
Check a promotional code before committing to a purchase. Limited to 20 requests per minute per account.
Validate a promo code against an amount and preview the discount. This does not reserve or consume the code. Worth calling first: passing an invalid promo_code to /purchase fails the entire order.
๐ API Key Required
Include X-API-Key: YOUR_API_KEY header.
| Name | Type | Required | Description |
|---|---|---|---|
| code | string | Required | Promotional code |
| amount | number | Required | Order subtotal to apply the code against (minimum 0.01) |
- โน๏ธ Rejected codes are a 400, not a 200 โ An invalid code does not return
"valid": falseโ it returns HTTP400witherror_code: promo_invalid. Every rejection (unknown, inactive or fully used) returns the same message, by design. Exceeding 20 validations per minute returns HTTP429witherror_code: rate_limit_exceededand aRetry-Afterheader.
curl -X POST https://accsbulk.com/api/v1/promo/validate \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"code":"SAVE10","amount":50.00}'
{
"success": true,
"data": {
"valid": true,
"original_amount": "50.00",
"discount": "5.00",
"final_amount": "45.00"
}
}{
"success": false,
"error_code": "promo_invalid",
"message": "Promo code is invalid or no longer available."
}