Skip to Content
Indexify
Social

Stack and user follow/unfollow operations

POST
/api/subscription.php

Manage stack subscriptions and user follow relationships. Auth requirements vary by action.

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

The subscription action to perform.

Value in"followers""follow""unfollow""follow_user""unfollow_user""user_followers""user_following""user_follow_status"

Request Body

application/json
  1. body

Used for followers, follow, and unfollow actions.

stack_id*integer

ID of the stack.

Response Body

Successful response. Shape depends on action.

application/json
  1. response

Response for followers action. Auth required.

followers?integer

Total follower count for the stack.

is_following?boolean

Whether the authenticated user follows this stack.

success?string
Example Request
curl -X POST 'https://api.indexify.finance/api/subscription.php?action=followers' \  -H 'Content-Type: application/json' \  -d '{  "stack_id": 0}'
Example Response
{  "followers": 0,  "is_following": true,  "success": "success"}