Oktopost

Inbox Events

Payloads for inbox webhook events.

Inbox events fire when items arrive in the inbox or change state. Each payload includes the inbox item; see Inbox item Data for the shape of Data by item type.

When available, inbox item payloads include a Language field containing an automatically detected ISO 639-1 language code, such as en, fr, or es. When language detection is unavailable, the field is null.

newInboxItem

Sent when a new item appears in the inbox.

[
	{
		"Id": "eitm00000000001",
		"Created": "2026-08-04 07:12:59",
		"EventDate": "2026-08-04 07:12:52",
		"Network": "Facebook",
		"ItemType": "Post",
		"Status": "open",
		"Url": "https://app.oktopost.com/inbox/eitm00000000001",
		"Origin": "external",
		"Data": {
			"PostId": "123456789_987654321",
			"PostURL": "https://www.facebook.com/123456789_987654321",
			"Profile": {
				"Id": "123456789",
				"Name": "Acme",
				"Picture": "https://example.com/acme.png",
				"Type": "page"
			},
			"CommentProfile": {
				"Id": "111222333",
				"Name": "Jordan Lee",
				"Picture": "https://example.com/jordan.png",
				"Type": "person"
			},
			"PostContent": {
				"Text": "We're hiring a product designer.",
				"Media": []
			},
			"CommentContent": {
				"Text": "Is this role remote?",
				"Media": []
			},
			"CommentDate": "2026-08-04 07:12:52"
		}
	}
]

newCommentOnInboxItem

Sent for a new comment or reply on an existing Post, Reply, or Mention item. The event record contains Item and Text. When an Oktopost user replies from the inbox, use inboxItemReplied instead.

[
	{
		"Item": {
			"Id": "eitm00000000002",
			"Created": "2026-08-04 07:12:59",
			"EventDate": "2026-08-04 07:48:32",
			"Network": "Facebook",
			"ItemType": "Post",
			"Status": "open",
			"Url": "https://app.oktopost.com/inbox/eitm00000000002",
			"Origin": "owned",
			"Data": {
				"PostId": "123456789_987654321",
				"PostURL": "https://www.facebook.com/123456789_987654321",
				"Profile": {
					"Id": "123456789",
					"Name": "Acme",
					"Picture": "https://example.com/acme.png",
					"Type": "page"
				},
				"CommentProfile": {
					"Id": "111222333",
					"Name": "Jordan Lee",
					"Picture": "https://example.com/jordan.png",
					"Type": "person"
				},
				"PostContent": {
					"Text": "We're hiring a product designer.",
					"Media": []
				},
				"CommentContent": {
					"Text": "A new comment",
					"Media": []
				},
				"CommentDate": "2026-08-04 07:48:32"
			}
		},
		"Text": "A new comment"
	}
]

newDirectMessageOnInboxItem

Sent for a new direct message on an existing Conversation item. The record contains Item and Text.

[
	{
		"Item": {
			"Id": "eitm00000000003",
			"Created": "2026-08-04 11:43:36",
			"EventDate": "2026-08-04 11:43:10",
			"Network": "Instagram",
			"ItemType": "Conversation",
			"Status": "open",
			"Url": "https://app.oktopost.com/inbox/eitm00000000003",
			"Origin": "external",
			"Data": {
				"Profile": {
					"Id": "123456789",
					"Name": "Acme",
					"Picture": "https://example.com/acme.png",
					"Type": "page"
				},
				"RemoteProfile": {
					"Id": "555666777",
					"Name": "Jordan Lee",
					"Picture": "https://example.com/jordan.png",
					"Type": "person"
				},
				"LatestMessage": {
					"Text": "A new direct message",
					"ProfileId": "0sp000000000001"
				},
				"PreviousMessage": {
					"Text": "Hi, I'd like to learn more.",
					"ProfileId": "0sp000000000002"
				}
			}
		},
		"Text": "A new direct message"
	}
]

inboxItemReplied

Sent when an Oktopost user replies or sends a direct message from the inbox. The record contains Item, Author, and Text.

[
	{
		"Item": {
			"Id": "eitm00000000002",
			"Created": "2026-08-04 07:12:59",
			"EventDate": "2026-08-04 07:48:32",
			"Network": "Facebook",
			"ItemType": "Post",
			"Status": "open",
			"Url": "https://app.oktopost.com/inbox/eitm00000000002",
			"Origin": "owned",
			"Data": {
				"PostId": "123456789_987654321",
				"PostURL": "https://www.facebook.com/123456789_987654321",
				"Profile": {
					"Id": "123456789",
					"Name": "Acme",
					"Picture": "https://example.com/acme.png",
					"Type": "page"
				},
				"CommentProfile": {
					"Id": "123456789",
					"Name": "Acme",
					"Picture": "https://example.com/acme.png",
					"Type": "page"
				},
				"PostContent": {
					"Text": "We're hiring a product designer.",
					"Media": []
				},
				"CommentContent": {
					"Text": "Thanks for reaching out — I'll follow up shortly.",
					"Media": []
				},
				"CommentDate": "2026-08-04 07:48:32"
			}
		},
		"Author": {
			"Id": "00A000000000001",
			"Name": "Alex Rivera",
			"Email": "alex.rivera@example.com",
			"LastLogin": "2026-08-03 13:25:33"
		},
		"Text": "Thanks for reaching out — I'll follow up shortly."
	}
]

newNoteOnInboxItem

The record contains Item, NoteAuthor, and NoteMessage.

[
	{
		"Item": {
			"Id": "eitm00000000004",
			"Created": "2026-08-04 07:12:59",
			"EventDate": "2026-08-04 07:12:52",
			"Network": "Facebook",
			"ItemType": "Post",
			"Status": "open",
			"Url": "https://app.oktopost.com/inbox/eitm00000000004",
			"Origin": "external",
			"Data": {
				"PostId": "123456789_987654321",
				"PostURL": "https://www.facebook.com/123456789_987654321",
				"Profile": {
					"Id": "123456789",
					"Name": "Acme",
					"Picture": "https://example.com/acme.png",
					"Type": "page"
				},
				"CommentProfile": {
					"Id": "111222333",
					"Name": "Jordan Lee",
					"Picture": "https://example.com/jordan.png",
					"Type": "person"
				},
				"PostContent": {
					"Text": "We're hiring a product designer.",
					"Media": []
				},
				"CommentContent": {
					"Text": "Is this role remote?",
					"Media": []
				},
				"CommentDate": "2026-08-04 07:12:52"
			}
		},
		"NoteAuthor": {
			"Id": "00A000000000001",
			"Name": "Alex Rivera",
			"Email": "alex.rivera@example.com",
			"LastLogin": "2026-08-03 13:25:33"
		},
		"NoteMessage": "Please follow up tomorrow."
	}
]

newInboxItemAssignment

The record contains Item, Assigner, Assignee, and Note.

[
	{
		"Item": {
			"Id": "eitm00000000004",
			"Created": "2026-08-04 07:12:59",
			"EventDate": "2026-08-04 07:12:52",
			"Network": "Facebook",
			"ItemType": "Post",
			"Status": "open",
			"Url": "https://app.oktopost.com/inbox/eitm00000000004",
			"Origin": "external",
			"Data": {
				"PostId": "123456789_987654321",
				"PostURL": "https://www.facebook.com/123456789_987654321",
				"Profile": {
					"Id": "123456789",
					"Name": "Acme",
					"Picture": "https://example.com/acme.png",
					"Type": "page"
				},
				"CommentProfile": {
					"Id": "111222333",
					"Name": "Jordan Lee",
					"Picture": "https://example.com/jordan.png",
					"Type": "person"
				},
				"PostContent": {
					"Text": "We're hiring a product designer.",
					"Media": []
				},
				"CommentContent": {
					"Text": "Is this role remote?",
					"Media": []
				},
				"CommentDate": "2026-08-04 07:12:52"
			}
		},
		"Assigner": {
			"Id": "00A000000000001",
			"Name": "Assigning User",
			"Email": "assigner@example.com",
			"LastLogin": "2026-08-03 13:25:33"
		},
		"Assignee": {
			"Id": "00A000000000002",
			"Name": "Assigned User",
			"Email": "assignee@example.com",
			"LastLogin": "2026-08-03 10:00:00"
		},
		"Note": ""
	}
]

inboxItemStatusChange

The record contains Item, User, and OldStatus. The new status is available in Item.Status.

[
	{
		"Item": {
			"Id": "eitm00000000004",
			"Created": "2026-08-04 07:12:59",
			"EventDate": "2026-08-04 07:12:52",
			"Network": "Facebook",
			"ItemType": "Post",
			"Status": "closed",
			"Url": "https://app.oktopost.com/inbox/eitm00000000004",
			"Origin": "external",
			"Data": {
				"PostId": "123456789_987654321",
				"PostURL": "https://www.facebook.com/123456789_987654321",
				"Profile": {
					"Id": "123456789",
					"Name": "Acme",
					"Picture": "https://example.com/acme.png",
					"Type": "page"
				},
				"CommentProfile": {
					"Id": "111222333",
					"Name": "Jordan Lee",
					"Picture": "https://example.com/jordan.png",
					"Type": "person"
				},
				"PostContent": {
					"Text": "We're hiring a product designer.",
					"Media": []
				},
				"CommentContent": {
					"Text": "Is this role remote?",
					"Media": []
				},
				"CommentDate": "2026-08-04 07:12:52"
			}
		},
		"User": {
			"Id": "00A000000000001",
			"Name": "Alex Rivera",
			"Email": "alex.rivera@example.com",
			"LastLogin": "2026-08-03 13:25:33"
		},
		"OldStatus": "open"
	}
]

inboxItemTagChange

The record contains Item, User, OldTags, and NewTags.

[
	{
		"Item": {
			"Id": "eitm00000000004",
			"Created": "2026-08-04 07:12:59",
			"EventDate": "2026-08-04 07:12:52",
			"Network": "Facebook",
			"ItemType": "Post",
			"Status": "open",
			"Url": "https://app.oktopost.com/inbox/eitm00000000004",
			"Origin": "external",
			"Data": {
				"PostId": "123456789_987654321",
				"PostURL": "https://www.facebook.com/123456789_987654321",
				"Profile": {
					"Id": "123456789",
					"Name": "Acme",
					"Picture": "https://example.com/acme.png",
					"Type": "page"
				},
				"CommentProfile": {
					"Id": "111222333",
					"Name": "Jordan Lee",
					"Picture": "https://example.com/jordan.png",
					"Type": "person"
				},
				"PostContent": {
					"Text": "We're hiring a product designer.",
					"Media": []
				},
				"CommentContent": {
					"Text": "Is this role remote?",
					"Media": []
				},
				"CommentDate": "2026-08-04 07:12:52"
			}
		},
		"User": {
			"Id": "00A000000000001",
			"Name": "Alex Rivera",
			"Email": "alex.rivera@example.com",
			"LastLogin": "2026-08-03 13:25:33"
		},
		"OldTags": [],
		"NewTags": [
			{
				"Id": "etg000000000001",
				"Created": "2026-08-02 08:20:05",
				"Modified": "2026-08-02 08:20:05",
				"InboxId": "ein000000000001",
				"Value": "priority"
			}
		]
	}
]

Inbox item Data

Data depends on ItemType: Conversation, Post, Mention, or Reply.

Profiles in Data use Id, Name, Picture, and Type. Id is the network profile ID. Type is page, group, or person.

Post text, comments, mentions, and mention replies use Text and a Media array. Media is empty when there are no attachments. Each attachment has Position, Type, URL, LinkTitle, LinkUrl, LinkDescription, Id, ContentId, and PreviewURL. Type is image, gif, video, file, unknown, carousel, or link-image.

Conversation

A direct-message thread. Profile is your connected profile. RemoteProfile is the other person. ProfileId is the sender of that message. Media is included only when the message has attachments. PreviousMessage is [] when there is no earlier message.

{
	"Profile": {
		"Id": "123456789",
		"Name": "Acme",
		"Picture": "https://example.com/acme.png",
		"Type": "page"
	},
	"RemoteProfile": {
		"Id": "555666777",
		"Name": "Jordan Lee",
		"Picture": "https://example.com/jordan.png",
		"Type": "person"
	},
	"LatestMessage": {
		"Text": "A new direct message",
		"ProfileId": "0sp000000000001",
		"Media": [
			{
				"Position": 0,
				"Type": "image",
				"URL": "https://example.com/photo.jpg",
				"LinkTitle": null,
				"LinkUrl": null,
				"LinkDescription": null,
				"Id": "12045",
				"ContentId": "0ct000000000001",
				"PreviewURL": "https://example.com/photo-preview.jpg"
			}
		]
	},
	"PreviousMessage": {
		"Text": "Hi, I'd like to learn more.",
		"ProfileId": "0sp000000000002"
	}
}

Post

A comment on a post from a connected profile. Profile is your profile. PostContent is the post. CommentProfile is the person who commented. With no comment, CommentProfile and CommentContent are null and CommentDate is "".

{
	"PostId": "123456789_987654321",
	"PostURL": "https://www.facebook.com/123456789_987654321",
	"Profile": {
		"Id": "123456789",
		"Name": "Acme",
		"Picture": "https://example.com/acme.png",
		"Type": "page"
	},
	"CommentProfile": {
		"Id": "111222333",
		"Name": "Jordan Lee",
		"Picture": "https://example.com/jordan.png",
		"Type": "person"
	},
	"PostContent": {
		"Text": "We're hiring a product designer.",
		"Media": []
	},
	"CommentContent": {
		"Text": "Is this role remote?",
		"Media": []
	},
	"CommentDate": "2026-08-04 07:12:52"
}

Mention

Someone mentioned your connected profile. Mention is your profile. MentionedBy is the person who mentioned you. With no reply, Reply is null and ReplyId and ReplyDate are "".

{
	"PostURL": "https://twitter.com/555666777/status/987654321",
	"Content": {
		"Text": "Thanks @acme for the quick help.",
		"Media": []
	},
	"Mention": {
		"Id": "123456789",
		"Name": "Acme",
		"Picture": "https://example.com/acme.png",
		"Type": "page"
	},
	"MentionedBy": {
		"Id": "555666777",
		"Name": "Jordan Lee",
		"Picture": "https://example.com/jordan.png",
		"Type": "person"
	},
	"Reply": {
		"Text": "Glad we could help.",
		"Media": []
	},
	"ReplyId": "1122334455",
	"ReplyDate": "2026-08-04 08:01:14"
}

Reply

A public reply to a post from a connected profile. SubjectContent is the original post and ReplyContent is the reply. Each has Id and Text only. SubjectProfile is your profile. ReplyProfile is the person who replied.

{
	"PostURL": "https://twitter.com/555666777/status/987654321",
	"SubjectContent": {
		"Id": "987654321",
		"Text": "We're hiring a product designer."
	},
	"ReplyContent": {
		"Id": "1122334455",
		"Text": "Is this role remote?"
	},
	"SubjectProfile": {
		"Id": "123456789",
		"Name": "Acme",
		"Picture": "https://example.com/acme.png",
		"Type": "page"
	},
	"ReplyProfile": {
		"Id": "555666777",
		"Name": "Jordan Lee",
		"Picture": "https://example.com/jordan.png",
		"Type": "person"
	}
}