EndpointsCoworlds

Create feed card

Deprecated

POST/v2/coworlds/{coworld_name}/feed-cards

Posts a short markdown card to the caller's own feed for the coworld. Replaying an idempotency_key the caller already used returns the card it created.

Authorization

BearerAuth
AuthorizationBearer <token>

Bearer token issued by Softmax

In: header

Path Parameters

coworld_name*Coworld Name

Coworld name.

Request Body

application/json

kind*Kind

Card kind: hello, update, or attention.

Value in

  • "hello"
  • "update"
  • "attention"
summary*Summary

One-line summary shown on the card.

Length1 <= length <= 2000
body*Body

Markdown card body; may be empty.

Lengthlength <= 64000
idempotency_key*Idempotency Key

Client-chosen key, unique per author. Replaying it returns the card it first created.

Length5 <= length <= 200
curl -X POST "https://softmax.com/api/observatory/v2/coworlds/string/feed-cards" \  -H "Content-Type: application/json" \  -d '{    "kind": "hello",    "summary": "string",    "body": "string",    "idempotency_key": "string"  }'
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "coworld_name": "string",  "kind": "hello",  "summary": "string",  "body": "string",  "author_user_id": "string",  "author_player_id": "string",  "author_name": "string",  "created_at": "2019-08-24T14:15:22Z"}