Skip to Content
API ReferenceLegacy v1

Blacklists

Request fields, responses, and examples for v1 blacklists.

These v1 operations are active. Use an API key for SDK integrations. See authentication for credentials and store selection, or follow the first request guide.

List all blacklist rules

GET
/v1/blacklists

Authorization

bearerAuthstoreAuth
headerAuthorizationBearer <API Key>

Provide your SellApp API key as a bearer token.

headerX-STORE<token>

Store slug. Required for OAuth access tokens. API keys may omit it to use their current store, or the first accessible store when no current store is selected.

Query Parameters

limit?integer

Number of items to return per page.

Range1 <= value <= 100
Default15
page?integer

Page number to return.

Range1 <= value
Default1

Response Body

A paginated list of blacklist rules.

application/json
  1. response
data*array<>
links*
meta*
Example Request
curl -X GET 'https://sell.app/api/v1/blacklists'
{  "data": [    {      "id": 1,      "type": "EMAIL",      "data": "leo.martin@example.com",      "description": "Block the address used by our launch-day load-test bot.",      "created_at": "2022-12-12T12:12:12.000000Z",      "updated_at": "2022-12-12T12:12:12.000000Z",      "store_id": 1    }  ],  "links": {    "first": "https://sell.app/api/v1/blacklists?page=1",    "last": "https://sell.app/api/v1/blacklists?page=1",    "prev": null,    "next": null  },  "meta": {    "current_page": 1,    "from": 1,    "last_page": 1,    "path": "https://sell.app/api/v1/blacklists",    "per_page": 15,    "to": 1,    "total": 1,    "links": [      {        "url": null,        "label": "&laquo; Previous",        "active": false      },      {        "url": "https://sell.app/api/v1/blacklists?page=1",        "label": "1",        "active": true      },      {        "url": null,        "label": "Next &raquo;",        "active": false      }    ]  }}

Create a blacklist rule

POST
/v1/blacklists

Authorization

bearerAuthstoreAuth
headerAuthorizationBearer <API Key>

Provide your SellApp API key as a bearer token.

headerX-STORE<token>

Store slug. Required for OAuth access tokens. API keys may omit it to use their current store, or the first accessible store when no current store is selected.

Request Body

application/json
  1. body
type*BlacklistType

The type of blacklist rule.

Value in"ASN""COUNTRY""EMAIL""IP""WILDCARD_EMAIL"
data*string

The value to blacklist.

description*string

Why this rule is being created.

Response Body

The newly created blacklist rule.

application/json
  1. response
data*

A blacklist rule that blocks purchases matching the provided details.

Example Request
curl -X POST 'https://sell.app/api/v1/blacklists' \  -H 'Content-Type: application/json' \  -d '{  "type": "ASN",  "data": "string",  "description": "string"}'
{  "data": {    "id": 1,    "type": "WILDCARD_EMAIL",    "data": "@blocked.example",    "description": "Retired after the growth experiment ended.",    "created_at": "2022-12-12T12:12:12.000000Z",    "updated_at": "2022-12-12T12:12:12.000000Z",    "store_id": 1  }}
GET
/v1/blacklists/{blacklist}

Authorization

bearerAuthstoreAuth
headerAuthorizationBearer <API Key>

Provide your SellApp API key as a bearer token.

headerX-STORE<token>

Store slug. Required for OAuth access tokens. API keys may omit it to use their current store, or the first accessible store when no current store is selected.

Path Parameters

blacklist*integer

The unique identifier of the blacklist rule.

Response Body

The requested blacklist rule.

application/json
  1. response
data*

A blacklist rule that blocks purchases matching the provided details.

Example Request
curl -X GET 'https://sell.app/api/v1/blacklists/1'
{  "data": {    "id": 1,    "type": "WILDCARD_EMAIL",    "data": "@blocked.example",    "description": "Retired after the growth experiment ended.",    "created_at": "2022-12-12T12:12:12.000000Z",    "updated_at": "2022-12-12T12:12:12.000000Z",    "store_id": 1  }}

Update a blacklist rule

PATCH
/v1/blacklists/{blacklist}

Authorization

bearerAuthstoreAuth
headerAuthorizationBearer <API Key>

Provide your SellApp API key as a bearer token.

headerX-STORE<token>

Store slug. Required for OAuth access tokens. API keys may omit it to use their current store, or the first accessible store when no current store is selected.

Path Parameters

blacklist*integer

The unique identifier of the blacklist rule.

Request Body

application/json
  1. body

Provide one or more fields to update an existing blacklist rule.

type?BlacklistType

The type of blacklist rule.

Value in"ASN""COUNTRY""EMAIL""IP""WILDCARD_EMAIL"
data?string

The updated value to blacklist.

description?string

The updated reason for this rule.

Response Body

The updated blacklist rule.

application/json
  1. response
data*

A blacklist rule that blocks purchases matching the provided details.

Example Request
curl -X PATCH 'https://sell.app/api/v1/blacklists/1' \  -H 'Content-Type: application/json' \  -d '{}'
{  "data": {    "id": 1,    "type": "WILDCARD_EMAIL",    "data": "@blocked-domain.example",    "description": "Block purchases from this email domain.",    "created_at": "2022-12-12T12:12:12.000000Z",    "updated_at": "2022-12-12T12:12:12.000000Z",    "store_id": 1  }}

Delete a blacklist rule

DELETE
/v1/blacklists/{blacklist}

Authorization

bearerAuthstoreAuth
headerAuthorizationBearer <API Key>

Provide your SellApp API key as a bearer token.

headerX-STORE<token>

Store slug. Required for OAuth access tokens. API keys may omit it to use their current store, or the first accessible store when no current store is selected.

Path Parameters

blacklist*integer

The unique identifier of the blacklist rule.

Response Body

The blacklist rule was deleted successfully.

application/json
  1. response
data*

A blacklist rule that blocks purchases matching the provided details.

Example Request
curl -X DELETE 'https://sell.app/api/v1/blacklists/1'
{  "data": {    "id": 1,    "type": "WILDCARD_EMAIL",    "data": "@blocked.example",    "description": "Retired after the growth experiment ended.",    "created_at": "2022-12-12T12:12:12.000000Z",    "updated_at": "2022-12-12T12:12:12.000000Z",    "store_id": 1  }}