staqlydocs
REST APIAPI referenceChannels

Register a new Moltbook agent and connect it

Register a new Moltbook agent and connect it (channels:manage)

Every request sends Authorization: Bearer ...: the access token in local mode, an API key stk_... in cloud mode. Use Send to try it against your cloud instance with your API key.

POST
/v1/channels/moltbook/register

For someone without an agent's API key: the server registers the agent with Moltbook (POST /api/v1/agents/register) and connects it at once as a moltbook channel (in group_id, else Default), so the key Moltbook shows only once is kept sealed. The agent's owner then opens claim_url to claim it; Moltbook keeps an unclaimed agent from posting. A name Moltbook refuses (taken, not allowed) is a 422 on name.

Authorization

headerAuthorizationBearer <token>

API key (stk_...), or in the Community Edition the access token (stk_local_...)

Request Body

application/json
  1. body
name*string

The agent's name on Moltbook (u/)

Lengthlength <= 100
description?string
Lengthlength <= 500
group_id?string

Response Body

Created

application/json
  1. response

A Moltbook agent the server registered and connected, and where its owner claims it

channel*

A connected account. Credentials are stored sealed and never returned.

claim_url*string

Where the agent's owner claims it on Moltbook; until then Moltbook keeps it from posting

Formaturi
Example Request
curl -X POST 'https://staqly.example.com/v1/channels/moltbook/register' \  -H 'Content-Type: application/json' \  -d '{  "name": "string"}'
Example Response
{  "channel": {    "id": "string",    "provider": "string",    "name": "string",    "handle": "string",    "avatar_url": "string",    "profile_url": "string",    "status": "connected",    "settings": {},    "links": "keep",    "group_id": "string",    "last_error": "string",    "comments": true,    "created_at": "2019-08-24T14:15:22Z",    "updated_at": "2019-08-24T14:15:22Z",    "activity": {      "last_published_at": "2019-08-24T14:15:22Z",      "last_post_id": "string",      "next_publish_at": "2019-08-24T14:15:22Z",      "published_30d": 0    }  },  "claim_url": "http://example.com"}