Custom data lets you enrich the author detail view with information and actions from your own systems. When a moderator opens an author, we call an endpoint you host and render the items it returns directly in the author’s sidebar. Common use cases:Documentation Index
Fetch the complete documentation index at: https://docs.moderationapi.com/llms.txt
Use this file to discover all available pages before exploring further.
- A button to impersonate the user in your own admin
- A link to the user’s billing or account page
- A badge showing the user’s account status
- Internal IDs, plan names, or links to your support tools
How it works
We request data
When a moderator opens an author, we send a
POST request to your endpoint with the author’s external id and email.Prerequisites
- Role: You need the admin or developer role for your project
- Endpoint: An
https://endpoint that acceptsPOSTrequests and responds within a few seconds
Configuration
Navigate to Configure → Custom data in your project dashboard:- Toggle Enable integration on
- Enter your Endpoint URL (must be
https://) - Optionally add request headers that should be sent on every request (for example, your own API key)
- Save
Authenticating requests
So you can confirm that requests genuinely come from us, every request includes your project’s webhook signing secret as anX-Webhook-Secret header. Compare this value against your project’s webhook secret and reject the request if it doesn’t match. You can find or rotate this secret on the Webhooks page.
Any custom headers you configure are sent alongside the X-Webhook-Secret header.
Request
We send aPOST request with a JSON body:
The contract version. Currently always
1.The id of the project the author belongs to.
The author’s external id — the same
author_id you send when submitting content.The author’s email, if known.
Response
Respond with status200 and a JSON body containing a version and an items array:
Item types
A label and a value.
label(string, optional)value(string, required)tooltip(string, optional)
A colored status pill.
label(string, optional)value(string, required)variant(string, optional): one ofdefault,success,warning,danger,infotooltip(string, optional)
A button that opens a link in a new tab. Use it for actions and references alike — choose the
variant to set its visual weight.label(string, required)url(string, required): must be anhttps://URLvariant(string, optional): one ofdefault,outline,ghost. Useghostfor a lightweight, link-style appearance anddefaultoroutlinefor a prominent action.tooltip(string, optional)
A label with an emphasized value, for numbers and key figures.
label(string, required)value(string, required)tooltip(string, optional)
A heading that groups the items beneath it.
label(string, required)
A horizontal separator. Takes no fields.