Oktopost
Streams

Stream Tabs

Streams are organized using tabs. With this endpoint you can list, create, delete and update stream tabs.

List Stream Tabs

Example Request

curl -i https://api.oktopost.com/v2/stream-tab

Example Result

{
	"Result": true,
	"Items": [
		{
		  "Id": "018000000000000",
		  "Name": "Twitter Stream",
		  "Status": "active",
		  "Created": "2020-11-18 15:00:06"
		}
	],
	"Total": 1
}

Get Stream Tab

Example Request

curl -i https://api.oktopost.com/v2/stream-tab/018000000000000

Example Result

{
	"Result": true,
	"StreamTab": {
		"Id": "018000000000000",
		"Name": "Twitter Stream",
		"Status": "active",
		"Created": "2020-11-18 15:00:06"
	}
}

Add Stream Tab

Example Request

curl -i https://api.oktopost.com/v2/stream-tab -X POST \
    -d name="Twitter Engagement"

Example Result

{
	"Result": true,
	"StreamTab": {
		"Id": "018000000000000",
		"Name": "Twitter Engagement",
		"Status": "active",
		"Created": "2020-11-15 13:23:34"
	}
}

Edit Stream Tab

Example Request

curl -i https://api.oktopost.com/v2/stream-tab/018000000000000 -X POST \
    -d name="Twitter Disengagement"

Example Result

{
	"Result": true,
	"StreamTab": {
		"Id": "018000000000000",
		"Name": "Twitter Disengagement",
		"Status": "active",
		"Created": "2020-11-15 13:23:34"
	}
}

Remove Stream Tab

Example Request

curl -i https://api.oktopost.com/v2/stream-tab/018000000000000 -X DELETE