For the complete documentation index, see llms.txt. This page is also available as Markdown.

Graph

Follow a user or collection

post

Follows a target user or collection on behalf of the authenticated user.

Body
targetIdstringRequired
targetTypestring · enumRequiredPossible values:
Responses
200

200

application/json
followIdstringRequired
post/network.cosmik.graph.follow
200

200

Unfollow a user or collection

post

Removes a follow relationship between the authenticated user and a target.

Body
targetIdstringRequired
targetTypestring · enumRequiredPossible values:
Responses
200

200

application/json
successbooleanRequired
post/network.cosmik.graph.unfollow
200

200

List users a user follows

get

Returns users followed by the specified account, identified by handle or DID.

Query parameters
identifierstringRequired
pagenumber · nullableOptional
limitnumber · nullableOptional
Responses
200

200

application/json
get/network.cosmik.graph.getFollowing
200

200

List a user's followers

get

Returns users who follow the specified account, identified by handle or DID.

Query parameters
identifierstringRequired
pagenumber · nullableOptional
limitnumber · nullableOptional
Responses
200

200

application/json
get/network.cosmik.graph.getFollowers
200

200

List collections a user follows

get

Returns collections followed by the specified account, identified by handle or DID.

Query parameters
identifierstringRequired
pagenumber · nullableOptional
limitnumber · nullableOptional
Responses
200

200

application/json
get/network.cosmik.graph.getFollowingCollections
200

200

Get following count

get

Returns the number of users a given account follows.

Query parameters
identifierstringRequired
Responses
200

200

application/json
countnumberRequired
get/network.cosmik.graph.getFollowingCount
200

200

Get follower count

get

Returns the number of followers for a given account.

Query parameters
identifierstringRequired
Responses
200

200

application/json
countnumberRequired
get/network.cosmik.graph.getFollowersCount
200

200

Get following collections count

get

Returns the number of collections a given account follows.

Query parameters
identifierstringRequired
Responses
200

200

application/json
countnumberRequired
get/network.cosmik.graph.getFollowingCollectionsCount
200

200

Subscribe to a user or collection

post

Marks an existing follow as subscribed for the authenticated user. Requires that the user is already following the target.

Body
targetIdstringRequired
targetTypestring · enumRequiredPossible values:
Responses
200

200

application/json
followIdstringRequired
subscribedAtstringRequired
post/network.cosmik.graph.subscribe
200

200

Unsubscribe from a user or collection

post

Clears the subscription flag on an existing follow. Idempotent.

Body
targetIdstringRequired
targetTypestring · enumRequiredPossible values:
Responses
200

200

application/json
successbooleanRequired
post/network.cosmik.graph.unsubscribe
200

200

Update the scopes of an existing subscription

post

Replaces the scope set on a subscription. Requires the caller to already be subscribed to the target.

Body
targetIdstringRequired
targetTypestring · enumRequiredPossible values:
Responses
200

200

application/json
followIdstringRequired
subscribedAtstringRequired
post/network.cosmik.graph.updateSubscription
200

200

List my subscriptions

get

Returns the authenticated user's subscribed users and collections, ordered by subscribedAt DESC.

Query parameters
pagenumber · nullableOptional
limitnumber · nullableOptional
targetTypestring · enumOptionalPossible values:
Responses
200

200

application/json
get/network.cosmik.graph.getSubscriptions
200

200

Last updated