Event Logs
Look up event types and review past webhook deliveries.
Use these endpoints to look up the events you can subscribe to and to review past webhook deliveries when debugging.
List Webhook Events
Retrieve the non-deprecated webhook event types that can be used when creating a webhook.
GET /v2/webhook/events
Authenticate the same way as other webhook endpoints. The live array includes every non-deprecated event type, not only the keys shown.
Example Request
curl -X GET "https://api.oktopost.com/v2/webhook/events" \
-u ACCOUNT_ID:API_KEYExample Response
{
"Result": true,
"Events": [
"newAdvocacyMessage",
"postSent",
"newInboxItem",
"newCampaign"
]
}Get Webhook Event
Return a canned sample payload for one event type.
GET /v2/webhook/events/:event
Samples use placeholder IDs and dates. They are not data from your account.
Sample is usually a JSON object. For some events (for example, newAdvocacyTopic) it is a JSON array.
Source and Status in the sample below are placeholders (app and sent). On a live postSent delivery, Source and Status use the same values as the Posts API. Live Postlogs contain Id, PostURL, MessageId, and ProfileId only. They do not include RemoteId.
Parameters
Prop
Type
Example Request
curl -X GET "https://api.oktopost.com/v2/webhook/events/postSent" \
-u ACCOUNT_ID:API_KEYExample Response
{
"Result": true,
"Event": "postSent",
"Sample": {
"Id": "pst00000000000000",
"Created": "2026-01-01 12:00:00",
"Modified": "2026-01-01 12:05:00",
"Status": "sent",
"AccountId": "001000000000000",
"CreatedBy": "usr00000000000000",
"ModifiedBy": "usr00000000000000",
"Source": "app",
"ContentSource": "manual",
"Queued": "2026-01-01 11:59:00",
"CampaignId": "002000000000000",
"BoardId": "",
"MessageId": "msg00000000000000",
"MessageChildId": "",
"MessageStatus": "approved",
"Network": "linkedin",
"StartDateTime": "2026-01-01 12:00:00",
"Groups": [],
"GroupsCount": 0,
"TotalCount": 1,
"TargetGeo": "",
"UpdateStatus": "",
"Flag": "",
"Clicks": 0,
"Converts": 0,
"Comments": 0,
"NewComments": 0,
"Likes": 0,
"Utm": "",
"ApproveStatus": "approved",
"Credentials": "cre00000000000000",
"ProfileIds": ["cre00000000000000"],
"Profiles": [
{
"Id": "cre00000000000000",
"Name": "Sample Profile",
"LongName": "Sample Profile (LinkedIn)",
"Type": "company",
"Thumbnail": "https://example.com/thumb.png",
"URL": "https://www.linkedin.com/company/sample"
}
],
"Postlogs": [
{
"Id": "pl000000000000000",
"PostURL": "https://www.linkedin.com/feed/update/urn:li:activity:0",
"MessageId": "msg00000000000000",
"ProfileId": "cre00000000000000"
}
]
}
}Webhook Log
View the execution history for a specific webhook, including response codes, execution times, and payloads sent.
GET /v2/webhook-log/:webhookId
Use webhook logs to:
- Debug webhook delivery issues
- Monitor webhook performance
- Review historical event data
- Verify payload structures
Parameters
Prop
Type
Example Request
curl -X GET "https://api.oktopost.com/v2/webhook-log/0WA000000000001" \
-u ACCOUNT_ID:API_KEYExample Response
{
"Result": true,
"Items": [
{
"Id": "0WC000000000001",
"WebhookPayloadId": "0WB000000000001",
"Created": "2017-05-23 14:07:18",
"ResponseCode": 200,
"ExecutionTime": 0.034530,
"Payload": [
{
"Item": {
"Id": "eitm00000000004",
"ItemType": "Post",
"Origin": "external"
},
"Assignee": {
"Id": "00A000000000002",
"Email": "assignee@example.com"
}
}
]
}
],
"Total": 1
}Prop
Type