POST
/
v1
/
activities
curl --request POST \
  --url https://api.useconquest.com/v1/activities \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "activityTypeKey": "api:message",
  "externalId": "<string>",
  "title": "<string>",
  "message": "<string>",
  "replyTo": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "reactTo": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "inviteTo": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "channelId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "eventId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "memberId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}'
{
  "activity": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "externalId": "<string>",
    "title": "<string>",
    "message": "<string>",
    "replyTo": "<string>",
    "reactTo": "<string>",
    "inviteTo": "<string>",
    "source": "Api",
    "activityTypeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "channelId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "eventId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "memberId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json
activityTypeKey
string
required

Key of the activity type

Example:

"api:message"

memberId
string
required

ID of the member

externalId
string

External ID of the activity

title
string

Title of the activity

message
string

Message of the activity

replyTo
string

ID of the activity to reply to

reactTo
string

ID of the activity to react to

inviteTo
string

ID of the activity to invite to

channelId
string

ID of the channel

eventId
string

ID of the event

Response

200
application/json
Activity created successfully
activity
object