Skip to content

INTERNAL: Fetches Microsoft 365 Message Center posts for a time period (default: yesterday) and publishes them to the Tophhie Cloud Blog.

POST
/m365/messagecenter/publish
curl --request POST \
--url https://api.tophhie.cloud/m365/messagecenter/publish \
--header 'x-tc-api-key: example'
lastHours

Rolling window: publish messages from the last N hours (ending now). Mutually exclusive with from/to.

number
> 0

Rolling window: publish messages from the last N hours (ending now). Mutually exclusive with from/to.

from

Start of the window as an ISO 8601 datetime (inclusive). Requires no lastHours.

string

Start of the window as an ISO 8601 datetime (inclusive). Requires no lastHours.

to

End of the window as an ISO 8601 datetime (exclusive). Defaults to now; only valid alongside from.

string

End of the window as an ISO 8601 datetime (exclusive). Defaults to now; only valid alongside from.

x-tc-api-key
required

Internal API key for authorising this operation.

string

Internal API key for authorising this operation.

Publisher completed.

Media typeapplication/json
object
message
required
string
total
required
number
succeeded
required
number
failed
required
number
skipped
required

Number of posts skipped because a Ghost post with that Message Center ID already exists.

number
blueskySucceeded
required

Number of posts also cross-posted to Bluesky.

number
blueskyFailed
required

Number of Bluesky cross-posts that failed (independent of the Ghost publish).

number
Examplegenerated
{
"message": "example",
"total": 1,
"succeeded": 1,
"failed": 1,
"skipped": 1,
"blueskySucceeded": 1,
"blueskyFailed": 1
}

Bad request — invalid time period parameters.

Media typeapplication/json
object
error
required
string
Examplegenerated
{
"error": "example"
}

Forbidden — invalid or missing API key.

Media typeapplication/json
object
error
required
string
Examplegenerated
{
"error": "example"
}

Internal server error.

Media typeapplication/json
object
error
required
string
Examplegenerated
{
"error": "example"
}