curl --request POST \
  --url https://api.campsite.com/v2/threads \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "title": "<string>",
  "member_ids": [
    "<string>"
  ]
}'
{
  "id": "<string>",
  "created_at": "<string>",
  "updated_at": "<string>",
  "group": true,
  "last_message_at": "<string>",
  "members_count": 123,
  "avatar_urls": {
    "xs": "<string>",
    "sm": "<string>",
    "base": "<string>",
    "lg": "<string>",
    "xl": "<string>",
    "xxl": "<string>"
  },
  "title": "<string>",
  "creator": {
    "avatar_urls": {
      "xs": "<string>",
      "sm": "<string>",
      "base": "<string>",
      "lg": "<string>",
      "xl": "<string>",
      "xxl": "<string>"
    },
    "name": "<string>",
    "id": "<string>",
    "type": "app"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
member_ids
string[]
required

The IDs of members to add to the thread.

title
string

Response

201 - application/json
id
string
required
created_at
string
required
updated_at
string
required
group
boolean
required
last_message_at
string | null
required
members_count
number
required
avatar_urls
object
required
title
string
required
creator
object
required