Skip to main content

Overview

Ban management allows administrators to prevent specific content from appearing on the platform by filtering text, patterns, images, and blocking user addresses.
All ban management endpoints require admin authentication. Changes take effect immediately and apply platform-wide.

Ban Terms

Manage banned text terms that will be filtered from token names and descriptions.

Get Ban Terms

curl -X GET "https://frontend-api-v3.pump.fun/moderation/ban-terms" \
  -H "Authorization: Bearer <your_token>"
Retrieves a list of all currently banned terms.

Add Ban Term

curl -X POST "https://frontend-api-v3.pump.fun/moderation/ban-terms" \
  -H "Authorization: Bearer <your_token>" \
  -H "Content-Type: application/json" \
  -d '{"term": "inappropriate_word"}'
Adds a new term to the ban list. Content containing this term will be filtered.

Remove Ban Term

curl -X DELETE "https://frontend-api-v3.pump.fun/moderation/ban-terms/{id}" \
  -H "Authorization: Bearer <your_token>"
id
string
required
The ID of the ban term to remove

Regex Ban Patterns

Use regular expressions for more sophisticated content filtering.

Get Regex Patterns

curl -X GET "https://frontend-api-v3.pump.fun/moderation/ban-regex-patterns" \
  -H "Authorization: Bearer <your_token>"
Retrieves all active regex ban patterns.

Add Regex Pattern

curl -X POST "https://frontend-api-v3.pump.fun/moderation/ban-regex-patterns" \
  -H "Authorization: Bearer <your_token>" \
  -H "Content-Type: application/json" \
  -d '{"pattern": "[0-9]{10,}"}'
Test regex patterns thoroughly before adding them to avoid unintended filtering. Invalid patterns may cause errors.

Remove Regex Pattern

curl -X DELETE "https://frontend-api-v3.pump.fun/moderation/ban-regex-patterns/{id}" \
  -H "Authorization: Bearer <your_token>"
id
string
required
The ID of the regex pattern to remove

Image Ban Terms

Manage banned terms for image content filtering.

Get Image Ban Terms

curl -X GET "https://frontend-api-v3.pump.fun/moderation/ban-image-terms" \
  -H "Authorization: Bearer <your_token>"

Add Image Ban Term

curl -X POST "https://frontend-api-v3.pump.fun/moderation/ban-image-terms" \
  -H "Authorization: Bearer <your_token>" \
  -H "Content-Type: application/json" \
  -d '{"term": "inappropriate_image_label"}'

Remove Image Ban Term

curl -X DELETE "https://frontend-api-v3.pump.fun/moderation/ban-image-terms/{id}" \
  -H "Authorization: Bearer <your_token>"
id
string
required
The ID of the image ban term to remove

User Bans

Manage banned user addresses.

Get Banned Users

curl -X GET "https://frontend-api-v3.pump.fun/moderation/ban-users?limit=50&offset=0&sortBy=createdAt&order=desc&searchQuery=&active=true&unbanRequest=false&fromDate=&toDate=" \
  -H "Authorization: Bearer <your_token>"
limit
string
required
Number of results to return
offset
string
required
Number of results to skip for pagination
sortBy
string
required
Field to sort by (e.g., createdAt, address)
order
string
required
Sort order: asc or desc
searchQuery
string
required
Search term to filter users
active
string
required
Filter by active ban status (true/false)
unbanRequest
string
required
Filter users with unban requests (true/false)
fromDate
string
required
Filter bans from this date (ISO 8601 format)
toDate
string
required
Filter bans until this date (ISO 8601 format)

Ban User Address

curl -X POST "https://frontend-api-v3.pump.fun/moderation/ban/address/{address}" \
  -H "Authorization: Bearer <your_token>"
address
string
required
The wallet address to ban from the platform

Ban Content by ID

curl -X POST "https://frontend-api-v3.pump.fun/moderation/ban/{id}" \
  -H "Authorization: Bearer <your_token>"
id
number
required
The ID of the content to ban

Get Ban Details

curl -X GET "https://frontend-api-v3.pump.fun/moderation/ban?id={id}" \
  -H "Authorization: Bearer <your_token>"
id
number
required
The ID of the ban to retrieve

Best Practices

  1. Start with specific terms: Add exact matches before using regex patterns
  2. Test patterns: Verify regex patterns don’t create false positives
  3. Document bans: Keep records of why terms or addresses were banned
  4. Review regularly: Periodically audit ban lists to ensure they’re still relevant
  5. Use bulk operations: For banning multiple addresses, consider using bulk endpoints
  6. Monitor effectiveness: Check moderation logs to see if bans are working as intended

Build docs developers (and LLMs) love