Champ › Guides › API

Champ Forum API for Shopify Developers

Updated 20 November 2026

Do you need this? Most stores do not. The API is for developers who want a program or script to read or change forum data. If you only run a forum, skip this guide.

An API (application programming interface) lets your own programs talk to Champ directly, without the dashboard. Champ's API sends and receives JSON, a common text format for data. Use it to import an existing forum, copy topics into a reporting database, or post from a script.

The API is supported. If it does not work the way this guide says, email support@getchamp.net and tell us the request you sent and the answer you got.

Base URL#

https://api.getchamp.net

Everything is JSON over HTTPS. There is no unencrypted endpoint.

Authentication#

Two headers on every request:

HeaderValue
X-SHOPIFY-DOMAINYour store's .myshopify.com domain
X-API-SECRETAn API secret generated in the dashboard

To create a secret:

  1. In the Champ dashboard, open Settings, then Developers, then API keys.
  2. Click Create API secret.
  3. Under Permissions, tick only what the integration needs.
  4. Click Save.
  5. Copy the secret from the page that opens. It is shown only once: Champ keeps only a

fingerprint of it. If you lose it, delete the secret and create a new one.

Each secret carries its own permissions:

  • read_forums
  • read_topics
  • write_topics
  • read_posts
  • write_posts

Grant only what the integration needs. A reporting script should hold a read-only secret; if it leaks, the damage is bounded.

A missing or wrong secret returns 403. A secret without the permission for that endpoint also returns 403.

Warning An API secret is a bearer credential with access to your whole forum. Keep it in your environment configuration, never in front-end code or a public repository. If one is exposed, delete it in the dashboard — that revokes it immediately — and issue a new one.

Response codes#

CodeMeaning
200The request was handled. On a create or update, check the body: if the record failed validation, it includes an errors array and nothing was saved
403Missing, invalid, or insufficiently permitted API secret
404Record not found, a value Champ does not know (such as an unknown status), or an unexpected error. The body is empty
422The forum, topic or user you referenced does not belong to your store. The body is empty

An empty 404 on a create or update usually means a field has a value Champ does not accept. Check status first: see Status values.

Status values#

Topics and posts each have their own status values. Send them as words.

RecordstatusMeaning
TopicopenPeople allowed in the forum can read it and reply
Topicread_onlyCan be read, but nobody can reply
TopiclockedShows a Locked label, and nobody can reply
TopichiddenOnly moderators can see it
PostvisibleShown in its topic
PosthiddenCustomers cannot see it

Whether a post is approved is separate from its status. See Create a post.

Pagination#

GET /topics and GET /posts return up to 200 records per page. Pass ?page=2 for the next page. GET /forums returns all your forums in one response. The API does not tell you the total. Keep requesting pages until one comes back with fewer than 200 records, or empty.

Forums#

List forums#

GET /forums
[
  {
    "id": 412,
    "title": "Gear & setup",
    "description": "Ask about kit, get answers from people who own it",
    "visible": "to_everyone",
    "hidden": false,
    "position": 1,
    "permission_level": "anyone_read_registered_post",
    "topics_count": 412,
    "posts_count": 3908,
    "sort_order": "post_created_at_ascending",
    "moderator_tag": "moderator",
    "category": "Product talk",
    "created_at": "2024-03-02T10:14:22.000Z",
    "updated_at": "2026-09-19T08:41:03.000Z"
  }
]

visible, permission_level and sort_order are words:

  • visible: to_everyone, only_with_access or only_to_moderators
  • sort_order: post_created_at_ascending (newest posts last) or post_created_at_descending
  • permission_level: who can see and post, for example anyone_post, anyone_read_registered_post,

registered_post or locked. The forum's Access settings in the dashboard set it.

Forums are created in the dashboard, not over the API.

Topics#

List topics#

GET /topics

Optional filters:

ParameterEffect
forum_idOnly topics in that forum
pinnedtrue or false
statusOnly topics with that status
GET /topics?forum_id=412&pinned=false&page=1

Get one topic#

GET /topics/:id
{
  "id": 1204,
  "title": "Fine-mist nozzle on the mk2 — worth it?",
  "status": "open",
  "posts_count": 14,
  "pinned": false,
  "url": "https://northwind-supply.com/community/champ/forums/412-gear-setup/topics/1204-fine-mist-nozzle-on-the-mk2-worth-it",
  "user_id": 88213,
  "username": "Mel B.",
  "forum_id": 412,
  "metadata": {},
  "preview_thumbnail": null,
  "preview_description": null,
  "created_at": "2026-09-18T14:02:11.000Z",
  "updated_at": "2026-09-20T07:55:40.000Z"
}

Create a topic#

POST /topics
{
  "topic": {
    "forum_id": 412,
    "user_id": 88213,
    "title": "Fine-mist nozzle on the mk2 — worth it?",
    "status": "open"
  }
}

Accepted fields: forum_id, user_id, title, status, pinned, custom_page_title, custom_meta_description, no_index_settings, preview_description, preview_thumbnail, and a free-form metadata object.

The forum and the user must belong to your store, or the request fails.

Update a topic#

PATCH /topics/:id

Same body shape. Useful for pinning, retitling, or moving a topic between forums.

Posts#

List posts#

GET /posts

Optional filters:

ParameterEffect
topic_idOnly posts in that topic. Use this to get one thread
forum_idOnly posts in that forum
statusvisible or hidden
GET /posts?topic_id=1204&page=1
[
  {
    "id": 99120,
    "content": "Yes — we run it on every mk2 in the shop.",
    "status": "visible",
    "ip": "203.0.113.24",
    "archived": false,
    "user_id": 4412,
    "username": "Jo K.",
    "forum_id": 412,
    "topic_id": 1204,
    "last_edited_at": null,
    "created_at": "2026-09-18T15:11:02.000Z",
    "updated_at": "2026-09-18T15:11:02.000Z"
  }
]

Get one post#

GET /posts/:id

Create a post#

POST /posts
{
  "post": {
    "topic_id": 1204,
    "forum_id": 412,
    "user_id": 4412,
    "content": "Drop the pressure to about 40 psi first.",
    "status": "visible"
  }
}

Accepted fields: topic_id, forum_id, user_id, content, status, approved_at, archived.

forum_id and topic_id are both required, and both must belong to your store. Leave out user_id to post without an author.

Approval. Champ decides approval after it saves the post, whatever approved_at you send. In a forum where New and edited posts require approval is on, the post waits in Moderation until someone approves it. Everywhere else it appears at once.

Update a post#

PATCH /posts/:id

Editing content, changing status, or archiving. An edit goes through approval again, as in Create a post.

A worked example#

Importing a thread from an old forum:

# 1. Find the forum you are importing into
curl -s https://api.getchamp.net/forums \
  -H "X-SHOPIFY-DOMAIN: yourstore.myshopify.com" \
  -H "X-API-SECRET: $CHAMP_SECRET"

# 2. Create the topic
# (jq reads the new topic's id from the answer)
TOPIC_ID=$(curl -s -X POST https://api.getchamp.net/topics \
  -H "X-SHOPIFY-DOMAIN: yourstore.myshopify.com" \
  -H "X-API-SECRET: $CHAMP_SECRET" \
  -H "Content-Type: application/json" \
  -d '{"topic":{"forum_id":412,"user_id":88213,"title":"Imported thread","status":"open"}}' | jq .id)

# 3. Add the replies
curl -s -X POST https://api.getchamp.net/posts \
  -H "X-SHOPIFY-DOMAIN: yourstore.myshopify.com" \
  -H "X-API-SECRET: $CHAMP_SECRET" \
  -H "Content-Type: application/json" \
  -d "{\"post\":{\"topic_id\":$TOPIC_ID,\"forum_id\":412,\"user_id\":4412,\"content\":\"First reply\",\"status\":\"visible\"}}"

Import gently — a script creating thousands of posts as fast as it can is indistinguishable from an attack, and the spam defences may treat it as one. Pace it, and tell us first if you are importing a large archive.

Bulk export#

For reading everything at once, the JSON export is better than paging the API. In the dashboard, open Settings, then Data and privacy, then Request export.

Next#