Skip to Content
Indexify
Stack Chat

Stack chat messages and creator notes

POST
/api/chat.php

Manage community messages and creator notes on a stack's chat. The action query parameter selects the sub-operation.

Authorization

ApiKeyAuth
headerX-API-KEY<token>

API key with the ix_ prefix. You can generate an API Key by navigating to Settings -> API Key in the web app. Pass it in the X-API-KEY header on every request.

Query Parameters

action*string
Value in"addMessage""getAll""togglePin"

Request Body

application/json
  1. body
stack_id*integer

Stack whose chat to post to.

message*string

Message body (1-1000 characters). HTML tags are stripped.

Length1 <= length <= 1000
message_type?string

Message type. creator_notes is restricted to the stack creator.

Default"community"
Value in"community""creator_notes"
pinned?boolean

Pin this message (creator_notes only). Unpins any previously pinned note.

Defaultfalse

Response Body

Successful response. Shape varies by action.

application/json
  1. response
success?boolean
message?
Example Request
curl -X POST 'https://api.indexify.finance/api/chat.php?action=addMessage' \  -H 'Content-Type: application/json' \  -d '{  "stack_id": 0,  "message": "string"}'
Example Response
{  "success": true,  "message": {    "id": 0,    "stack_id": 0,    "messages": "string",    "message_type": "community",    "pinned": true,    "created_at": 0,    "user": {      "id": 0,      "username": "string",      "avatar": "string"    }  }}