Oktopost
Inbox

Conversations

List, get, update, assign, tag, note, and reply to Inbox items, and create Salesforce cases from them.

Inbox items include direct messages, post comments, mentions, and replies from your connected profiles. Use these endpoints to list, view, update, and act on any conversation in your Oktopost Inbox.

Item Types

Every inbox item is a conversation; the ItemType field describes what kind of activity it represents. ItemType is one of four case-sensitive values, returned on every item and accepted by the type filter.

Prop

Type

Despite its name, Post represents a comment on your post, not the post itself. Filtering with type=Post returns comment activity on posts published by your connected profiles.

List Conversations

Retrieve all inbox items that match the given filters.

GET /v2/conversation

By default, the response includes all item types (direct messages, post comments, mentions, and replies). See Pagination for shared behavior. Only _count is supported; _page and _order are ignored.

Parameters

Prop

Type

Example Request

curl -X GET "https://api.oktopost.com/v2/conversation?status=open&type=Post,Mention" \
  -u ACCOUNT_ID:API_KEY

Example Response

{
	"Result": true,
	"Conversations": {
		"Total": 42,
		"Items": [
			{
				"Id": "eit000000000001",
				"Created": "2025-03-10 14:22:00",
				"Modified": "2025-03-12 09:15:30",
				"Status": "open",
				"Network": "Facebook",
				"ItemType": "Post",
				"AssigneeId": "00A000000000001",
				"ProfileName": "Acme Inc"
			},
			...
		]
	}
}

Get Conversation

Retrieve a single inbox item by ID, including its assigned tags.

GET /v2/conversation/:conversationId

Parameters

Prop

Type

Example Request

curl -X GET "https://api.oktopost.com/v2/conversation/eit000000000001" \
  -u ACCOUNT_ID:API_KEY

Example Response

{
	"Result": true,
	"Conversation": {
		"Id": "eit000000000001",
		"Created": "2025-03-10 14:22:00",
		"Modified": "2025-03-12 09:15:30",
		"Status": "open",
		"Network": "LinkedIn",
		"ItemType": "Conversation",
		"AssigneeId": "00A000000000001",
		"ProfileName": "Acme Inc",
		"Tags": [
			{
				"Id": "etg000000000001",
				"Name": "Support"
			}
		]
	}
}

Update Conversation Status

Open or close an inbox item.

POST /v2/conversation/:conversationId

Parameters

Prop

Type

Example Request

curl -X POST "https://api.oktopost.com/v2/conversation/eit000000000001" \
  -u ACCOUNT_ID:API_KEY \
  -d status="closed"

Example Response

{
	"Result": true
}

Get Timeline

Retrieve the timeline of an inbox item, including messages, comments, notes, shares, and likes.

GET /v2/conversation/:conversationId/timeline

The timeline uses cursor-based pagination.

Parameters

Prop

Type

Example Request

curl -X GET "https://api.oktopost.com/v2/conversation/eit000000000001/timeline" \
  -u ACCOUNT_ID:API_KEY

Example Response

{
	"Result": true,
	"Timeline": [
		{
			"Id": "eat000000000001",
			"Type": "note",
			"Created": "2025-03-12 09:15:30",
			"Content": "Following up with the customer.",
			"CreatedBy": "00A000000000001"
		},
		{
			"Id": "eat000000000002",
			"Type": "share",
			"Created": "2025-03-11 16:45:00",
			"Content": "Thanks for reaching out."
		}
	]
}

Assign Conversation

Assign an inbox item to a user, optionally with a note.

POST /v2/conversation/:conversationId/assign

The note is also added to the item's timeline.

Parameters

Prop

Type

Example Request

curl -X POST "https://api.oktopost.com/v2/conversation/eit000000000001/assign" \
  -u ACCOUNT_ID:API_KEY \
  -d assignee_id="00A000000000002" \
  -d note="VIP customer. Handle with priority."

Example Response

{
	"Result": true,
	"Assignment": {
		"ItemId": "eit000000000001",
		"AssigneeId": "00A000000000002"
	}
}

Add Note

Add an internal note to an inbox item's timeline.

POST /v2/conversation/:conversationId/note

Parameters

Prop

Type

Example Request

curl -X POST "https://api.oktopost.com/v2/conversation/eit000000000001/note" \
  -u ACCOUNT_ID:API_KEY \
  -d note="Escalated to engineering team"

Example Response

{
	"Result": true,
	"Note": {
		"Id": "eat000000000003",
		"Type": "note",
		"Created": "2025-03-12 10:30:00",
		"Content": "Escalated to engineering team",
		"CreatedBy": "00A000000000001"
	}
}

Update Tags

Replace the tags assigned to an inbox item.

POST /v2/conversation/:conversationId/tag

Pass the full list of tag names. Any previously assigned tags not in the list are removed.

Parameters

Prop

Type

Example Request

curl -X POST "https://api.oktopost.com/v2/conversation/eit000000000001/tag" \
  -u ACCOUNT_ID:API_KEY \
  -d tags[]="Support" \
  -d tags[]="VIP"

Example Response

{
	"Result": true,
	"Tags": [
		{
			"Id": "etg000000000001",
			"Name": "Support"
		},
		{
			"Id": "etg000000000002",
			"Name": "VIP"
		}
	]
}

Reply

Send a reply or comment on an inbox item.

POST /v2/conversation/:conversationId/reply

For direct messages (the Conversation type), this sends a DM reply. For public items (the Post, Mention, and Reply types), this adds a comment. The item must have the open status.

For direct messages (the Conversation type), replies are supported on Facebook, X, and LinkedIn. For public items (the Post, Mention, and Reply types), comments are supported on Facebook, X, LinkedIn, Instagram, TikTok, and YouTube. Replying on an unsupported network returns 400.

Parameters

Prop

Type

Example Request

Reply to a direct message:

curl -X POST "https://api.oktopost.com/v2/conversation/eit000000000001/reply" \
  -u ACCOUNT_ID:API_KEY \
  -d message="Thanks for reaching out. We'll look into this right away."

Reply to a public comment in its thread:

curl -X POST "https://api.oktopost.com/v2/conversation/eit000000000002/reply" \
  -u ACCOUNT_ID:API_KEY \
  -d message="Thanks for the feedback." \
  -d parent_comment_id="eit000000000003"

Example Response

{
	"Result": true
}

Create Salesforce Case

Create or update a Salesforce case linked to an inbox item.

POST /v2/conversation/:conversationId/create-case

This endpoint requires an active Salesforce integration. Without one, the request returns 400.

Parameters

Prop

Type

Example Request

curl -X POST "https://api.oktopost.com/v2/conversation/eit000000000001/create-case" \
  -u ACCOUNT_ID:API_KEY \
  -d integration_id="sfint00000000001" \
  -d case_owner="005000000000001" \
  -d contact_id="003000000000001" \
  -d case_description="Customer reported an issue with login"

Example Response

{
	"Result": true
}