Developers

API documentation

REST API for MonitorSky. Read and manage your Microsoft Teams contacts, groups and campaigns, and start campaigns from your own scripts and tools. Every request acts on the MonitorSky account that owns the API key.

Version 1.0.0 · Base URL: https://api.monitorsky.cloud/v1

Download PDF

Overview

The MonitorSky API lets your own scripts and tools read and manage your Microsoft Teams contacts, groups and campaigns, and start campaigns. Every request acts on the MonitorSky account that owns the API key.

  • Base URL: https://api.monitorsky.cloud/v1
  • Requests and responses are JSON. Send Content-Type: application/json with a request body. A body may be up to 10 MB.
  • All ids are UUIDs. Dates are ISO 8601 date-times.
  • Contacts come from your Teams chats ("Sync with Teams" in the app, or POST /contacts/sync). The API cannot create contacts.

Quickstart

  1. In MonitorSky, open Settings, go to API keys and click Create API key. Give it a name, keep the default permissions (the five "(read)" ones) and click Create key.
  2. Copy the key. It is shown only once.
  3. Call the API with the key:
export MONITORSKY_API_KEY="msk_live_..."

curl https://api.monitorsky.cloud/v1/me \
  -H "Authorization: Bearer $MONITORSKY_API_KEY"

curl "https://api.monitorsky.cloud/v1/contacts?limit=10" \
  -H "Authorization: Bearer $MONITORSKY_API_KEY"

Authentication

Send the key in the Authorization header on every request:

Authorization: Bearer msk_live_...
  • A key starts with msk_live_. MonitorSky stores only a hash of it and shows it once, right after you create it. If you lose it, revoke it and create a new one.
  • A missing, unknown, revoked or expired key gets 401 with the code unauthorized.
  • An account can have up to 10 active keys. A key can expire after 30 days, 90 days, 1 year, or never.
  • Revoke in Settings > API keys stops a key at once. A revoked key cannot be restored.

Permissions (scopes)

Each endpoint needs one scope. A key without it gets 403 with the code insufficient_scope. The names below are the ones in the "Create API key" dialog.

Permission in the appScopeAllows
Account and plan (read)account:readGET /me, GET /teams/connection
Statistics (read)stats:readGET /stats
Contacts (read)contacts:readRead contacts and the contact sync status
Contacts (edit)contacts:writeEdit and remove contacts, start a contact sync
Groups (read)groups:readRead groups, their members and unsubscribes
Groups (edit)groups:writeCreate, edit, copy and delete groups; add and remove members
Campaigns (read)campaigns:readRead campaigns and their recipients (delivery and replies)
Campaigns (create, edit, delete)campaigns:writeCreate, edit, copy and delete campaigns; check a campaign for replies
Send campaignscampaigns:sendPreview, schedule and send campaigns

New keys get the five "(read)" permissions by default. Send campaigns lets the key send real Teams messages to your contacts from your account: enable it only for tools you trust.

Rate limits

  • Each key can make 1000 requests per hour. The hour starts with the key's first request.
  • Over the limit the API answers 429 with the code rate_limited and a Retry-After header (seconds until the hour is over).
  • A contact sync can run once every 2 hours. An earlier POST /contacts/sync also gets 429 rate_limited with Retry-After.
  • Checking a campaign for replies runs at most once every 10 minutes per campaign. An earlier call answers 200 with "skipped": true.

Errors

Errors use real HTTP status codes and one format:

{
  "error": {
    "code": "not_found",
    "message": "Campaign not found."
  }
}
StatusCodeMeaning
400validation_errorInvalid JSON, a missing or invalid field or query parameter, or an id that is not a UUID
401unauthorizedMissing, unknown, revoked or expired API key
403insufficient_scopeThe key lacks the scope this endpoint needs
403forbiddenThe key may not be used for this request
403tos_requiredAccept the Terms of Service in the app first (creating, scheduling and sending campaigns)
404not_foundThe id does not exist in your account, or the path does not exist
409conflictThe request does not fit the current state (see Conflicts)
409PLAN_LIMITThe campaign has more recipients than your plan's contact limit
409TRIAL_EXPIREDThe free trial has ended
413payload_too_largeThe request body is larger than 10 MB
429rate_limitedToo many requests (see Rate limits)
500internal_errorSomething went wrong on our side. When the response has an error_id, quote it to support

Ids of another account always answer 404, never 403.

Lists and paging

  • GET /contacts, GET /groups/{groupId}/contacts, GET /campaigns and GET /campaigns/{campaignId}/recipients take limit (1 to 500, default 100) and offset (0 or more, default 0) and answer { "data": [...], "total": n, "limit": 100, "offset": 0 }. total counts all matching items, not only this page.
  • Filters: GET /contacts takes q (case-insensitive match on name, email or company) and group_id; GET /campaigns takes status (draft, scheduled, sending, sent, failed); GET /campaigns/{campaignId}/recipients takes replied (true or false).
  • GET /contacts covers your 2000 most recently added contacts, and GET /campaigns your 2000 most recent campaigns.
  • GET /groups and GET /groups/{groupId}/unsubscribes answer { "data": [...] } without paging.

Asynchronous operations

  • Contact sync: POST /contacts/sync answers 202 at once with "status": "queued" and a runId (or "alreadyRunning": true while a sync is running). Poll GET /contacts/sync until status is completed or failed. A sync can take about a minute for 100 or more chats.
  • Sending: POST /campaigns/{campaignId}/send answers 202 with "status": "started", the campaign_id and total_items (the number of recipients). The messages are sent in the background. Poll GET /campaigns/{campaignId} until status is sent or failed.

Campaign recipients

GET /campaigns/{campaignId}/recipients lists the people a sent (or sending) campaign went to, sorted by name, without email addresses:

  • delivery_status: pending, delivered, failed or skipped. For skipped, skip_reason says why, for example chat_request_pending (the person has not accepted your Teams chat request yet).
  • replied and replied_at: the person wrote in the 1:1 chat after the campaign message. MonitorSky records that a reply came, not what it says.
  • A draft has no recipients yet.

Example: everyone who has not replied yet.

curl "https://api.monitorsky.cloud/v1/campaigns/$CAMPAIGN_ID/recipients?replied=false" \
  -H "Authorization: Bearer $MONITORSKY_API_KEY"

Sending campaigns

  • Sending needs a key with the Send campaigns permission (campaigns:send).
  • GET /campaigns/{campaignId}/send-preview shows what a send would do now and changes nothing: the message as text, the target groups, the number of recipients, the plan limit, the connected Microsoft account the messages come from, and blocking_issues (empty when the campaign can be sent). Add scheduled_at to preview a schedule, and accept_limit=true to see the count with the plan limit accepted. It needs the Send campaigns permission. Reading the sender makes one call to Microsoft; if that fails, the answer is 409 conflict "Teams connection problem, reconnect in the app."
  • The request body must be {"confirm": true}. Without it the API answers 400.
  • Only a campaign in draft can be sent. It needs at least one group with members who can receive campaigns.
  • MonitorSky sends real 1:1 Teams messages from your own Microsoft account, one per recipient. Your Teams account must be connected in the app.
  • When the campaign has more recipients than your plan's contact limit, the API answers 409 PLAN_LIMIT. Send again with "accept_limit": true to send to as many recipients as the plan allows.
  • POST /campaigns/{campaignId}/schedule takes scheduled_at (a future ISO 8601 date-time; include a time zone such as Z or +01:00) and the same accept_limit.
curl -X POST "https://api.monitorsky.cloud/v1/campaigns/$CAMPAIGN_ID/send" \
  -H "Authorization: Bearer $MONITORSKY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"confirm": true}'

Conflicts

The API answers 409 with the code conflict when:

  • the group is the system group "Needs identification": it cannot be edited, deleted, copied or filled, or used as a campaign target or a contact's group (removing a contact from it is allowed);
  • a campaign is not draft or scheduled and is edited or scheduled;
  • a campaign is not draft and is sent;
  • a campaign that is sending is deleted;
  • a contact who unsubscribed from a group is added to that group again;
  • a contact sync or a send needs a connected Teams account and there is none (a send then marks the campaign failed), or a send finds no recipients who can receive campaigns.

POST /campaigns needs name and message. New campaigns are always drafts.

MCP server (AI assistants)

MonitorSky also runs an MCP server, so an AI assistant that supports the Model Context Protocol (MCP) can use your MonitorSky account in plain language, with the same API key.

  • URL: https://api.monitorsky.cloud/mcp (Streamable HTTP). Send your API key in the Authorization header, as for the API.
  • The assistant only sees the tools your key's permissions allow. A key with the default "(read)" permissions can only read. There are no tools that delete anything.
  • Every request to the MCP server counts against the key's 1000 requests per hour, including the requests an assistant makes when it connects.
  • Lists show names, not email addresses. Only the contact detail returns a contact's email.
  • Messages an assistant writes are plain text: a blank line starts a new paragraph. {{name}}, {{surname}} and {{full name}} are filled in for each recipient.
  • The MCP server accepts API keys only. Adding it as a connector that requires an OAuth sign-in is not supported yet.

Sending through an assistant

Sending and scheduling need a key with the Send campaigns permission. The assistant first gets a preview: the campaign, the message text, the number of recipients and the Microsoft account the messages come from. It has to show you the preview and ask you before it sends. The confirmation only works with that preview, for 15 minutes, and only if nothing changed since. Read each preview before you approve it: a send is a real message from your Teams account and cannot be taken back.

Claude Code

claude mcp add --transport http monitorsky https://api.monitorsky.cloud/mcp \
  --header "Authorization: Bearer $MONITORSKY_API_KEY"

Then type /mcp in Claude Code to see the server and its tools.

Claude Desktop

Claude Desktop connects through the mcp-remote bridge, which needs Node.js. In Claude Desktop open Settings, Developer, Edit Config and add this to claude_desktop_config.json, with your key in place of msk_live_...:

{
  "mcpServers": {
    "monitorsky": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://api.monitorsky.cloud/mcp", "--header", "Authorization:${MONITORSKY_AUTH}"],
      "env": { "MONITORSKY_AUTH": "Bearer msk_live_..." }
    }
  }
}

Restart Claude Desktop. The key is stored in that file on your computer: protect the file, and revoke the key in Settings if the file is shared.

What data your AI provider sees

When you use the MCP server, your AI client (for example Claude or another MCP-capable assistant) sends tool calls to MonitorSky and receives the results. Those results can contain your contacts' names, email addresses, companies, notes and group memberships, unsubscribe records, your campaign messages and your statistics. The AI client passes them to its own AI model provider, and that provider processes them under its own terms and privacy policy, not MonitorSky's. MonitorSky does not control what the AI client or its provider stores. Use a key with only the permissions you need, and do not give "Send campaigns" to an assistant you do not trust.

Agent skill

The MCP server gives an AI assistant the tools. The MonitorSky agent skill adds the workflow know-how: how to check the account, build a group, write a short personal message, show the send preview and wait for your approval before sending, and follow up people who did not reply. It is a folder with a SKILL.md file (plain Markdown with a short header) and a REST reference for assistants without MCP. It contains no API key: the assistant uses the MCP server, or the REST API with the key from the environment variable MONITORSKY_API_KEY.

Download the skill (zip)

Quick start

  1. Create an API key in MonitorSky under Settings, API keys, and add "Groups (edit)", "Campaigns (create, edit, delete)" and "Send campaigns" only if the assistant should build groups, write drafts or send.
  2. Add the MCP server with that key (Claude Code: the claude mcp add command in the section "MCP server (AI assistants)" above).
  3. Unzip the skill into ~/.claude/skills/, restart Claude Code and ask: "Show me my MonitorSky groups and draft a short message to one of them."

With the skill, the assistant shows you a preview and waits for your yes before anything is sent; MonitorSky itself only sends with a confirmation from that preview.

Claude Code

Unzip it into your personal skills folder, or into .claude/skills/ in a project, then restart Claude Code. Add the MCP server as described above.

unzip monitorsky-teams-outreach.zip -d ~/.claude/skills/

Claude apps

You can upload the zip as a custom skill, as described in Anthropic's guide How to create custom skills. The Claude apps connect to MCP servers through an OAuth sign-in, which the MonitorSky MCP server does not support yet. Until then, use Claude Code, Claude Desktop with the mcp-remote bridge (see "Claude Desktop" above), or another client that lets you set an Authorization header.

Other agents

SKILL.md is plain Markdown. Agents that do not support skills can use it as instructions.

Endpoints

Account

GET/me

Current user, plan and usage

Permission: Account and plan (read) (account:read)

Responses

Example

curl "https://api.monitorsky.cloud/v1/me" \
  -H "Authorization: Bearer $MONITORSKY_API_KEY"

GET/teams/connection

Is the user's Microsoft/Teams account connected?

Permission: Account and plan (read) (account:read)

Responses

Example

curl "https://api.monitorsky.cloud/v1/teams/connection" \
  -H "Authorization: Bearer $MONITORSKY_API_KEY"

Contacts

GET/contacts

List contacts

Permission: Contacts (read) (contacts:read)

Parameters

NameInTypeRequiredDescription
limitqueryintegermin 1, max 500, default 100
offsetqueryintegermin 0, default 0
qquerystringCase-insensitive match on name, email or company
group_idquerystring (uuid)

Responses

Example

curl "https://api.monitorsky.cloud/v1/contacts" \
  -H "Authorization: Bearer $MONITORSKY_API_KEY"

GET/contacts/sync

Contact sync status

Permission: Contacts (read) (contacts:read)

Responses

Example

curl "https://api.monitorsky.cloud/v1/contacts/sync" \
  -H "Authorization: Bearer $MONITORSKY_API_KEY"

POST/contacts/sync

Start a Teams contact sync (async)

Returns immediately; poll GET /contacts/sync. Can take about a minute for 100+ chats.

Permission: Contacts (edit) (contacts:write)

Responses

  • 202 Started: SyncStatus
  • 429 A sync ran within the last 2 hours; see Retry-After: Error

Example

curl -X POST "https://api.monitorsky.cloud/v1/contacts/sync" \
  -H "Authorization: Bearer $MONITORSKY_API_KEY"

GET/contacts/{contactId}

Get one contact

Permission: Contacts (read) (contacts:read)

Parameters

NameInTypeRequiredDescription
contactIdpathstring (uuid)yes

Responses

  • 200 OK: Contact
  • 404 Not found (or not owned by the caller): Error

Example

curl "https://api.monitorsky.cloud/v1/contacts/$CONTACT_ID" \
  -H "Authorization: Bearer $MONITORSKY_API_KEY"

PATCH/contacts/{contactId}

Update a contact (name, note, country, group membership)

Permission: Contacts (edit) (contacts:write)

Parameters

NameInTypeRequiredDescription
contactIdpathstring (uuid)yes

Request body

FieldTypeRequiredDescription
namestring
notestring
countrystring
group_idsarray of string (uuid)Adds memberships; never removes.

Responses

  • 200 OK: Contact
  • 404 Not found (or not owned by the caller): Error

Example

curl -X PATCH "https://api.monitorsky.cloud/v1/contacts/$CONTACT_ID" \
  -H "Authorization: Bearer $MONITORSKY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"My name"}'

DELETE/contacts/{contactId}

Remove a contact (soft delete)

The contact disappears from all lists. A later Teams sync does not add it back.

Permission: Contacts (edit) (contacts:write)

Parameters

NameInTypeRequiredDescription
contactIdpathstring (uuid)yes

Responses

  • 204 Removed
  • 404 Not found (or not owned by the caller): Error

Example

curl -X DELETE "https://api.monitorsky.cloud/v1/contacts/$CONTACT_ID" \
  -H "Authorization: Bearer $MONITORSKY_API_KEY"

Groups

GET/groups

List groups

Permission: Groups (read) (groups:read)

Responses

  • 200 OK: object

Example

curl "https://api.monitorsky.cloud/v1/groups" \
  -H "Authorization: Bearer $MONITORSKY_API_KEY"

POST/groups

Create a group

Permission: Groups (edit) (groups:write)

Request body

FieldTypeRequiredDescription
namestring
descriptionstring | null
colorstring | null

Responses

Example

curl -X POST "https://api.monitorsky.cloud/v1/groups" \
  -H "Authorization: Bearer $MONITORSKY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"My name"}'

PATCH/groups/{groupId}

Update a group

Permission: Groups (edit) (groups:write)

Parameters

NameInTypeRequiredDescription
groupIdpathstring (uuid)yes

Request body

FieldTypeRequiredDescription
namestring
descriptionstring | null
colorstring | null

Responses

  • 200 OK: Group
  • 404 Not found (or not owned by the caller): Error

Example

curl -X PATCH "https://api.monitorsky.cloud/v1/groups/$GROUP_ID" \
  -H "Authorization: Bearer $MONITORSKY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"My name"}'

DELETE/groups/{groupId}

Delete a group (contacts are kept)

Permission: Groups (edit) (groups:write)

Parameters

NameInTypeRequiredDescription
groupIdpathstring (uuid)yes

Responses

  • 204 Deleted
  • 404 Not found (or not owned by the caller): Error

Example

curl -X DELETE "https://api.monitorsky.cloud/v1/groups/$GROUP_ID" \
  -H "Authorization: Bearer $MONITORSKY_API_KEY"

POST/groups/{groupId}/copy

Duplicate a group with its active members

Permission: Groups (edit) (groups:write)

Parameters

NameInTypeRequiredDescription
groupIdpathstring (uuid)yes

Responses

Example

curl -X POST "https://api.monitorsky.cloud/v1/groups/$GROUP_ID/copy" \
  -H "Authorization: Bearer $MONITORSKY_API_KEY"

GET/groups/{groupId}/contacts

List group members

Permission: Groups (read) (groups:read)

Parameters

NameInTypeRequiredDescription
groupIdpathstring (uuid)yes

Responses

Example

curl "https://api.monitorsky.cloud/v1/groups/$GROUP_ID/contacts" \
  -H "Authorization: Bearer $MONITORSKY_API_KEY"

POST/groups/{groupId}/contacts

Add all (non-removed) contacts to the group

Permission: Groups (edit) (groups:write)

Parameters

NameInTypeRequiredDescription
groupIdpathstring (uuid)yes

Responses

  • 200 OK: object

Example

curl -X POST "https://api.monitorsky.cloud/v1/groups/$GROUP_ID/contacts" \
  -H "Authorization: Bearer $MONITORSKY_API_KEY"

PUT/groups/{groupId}/contacts/{contactId}

Add a contact to a group

Refused for contacts that unsubscribed from this group.

Permission: Groups (edit) (groups:write)

Parameters

NameInTypeRequiredDescription
groupIdpathstring (uuid)yes
contactIdpathstring (uuid)yes

Responses

  • 204 Added (idempotent)
  • 404 Not found (or not owned by the caller): Error
  • 409 Error: Error

Example

curl -X PUT "https://api.monitorsky.cloud/v1/groups/$GROUP_ID/contacts/$CONTACT_ID" \
  -H "Authorization: Bearer $MONITORSKY_API_KEY"

DELETE/groups/{groupId}/contacts/{contactId}

Remove a contact from a group

Permission: Groups (edit) (groups:write)

Parameters

NameInTypeRequiredDescription
groupIdpathstring (uuid)yes
contactIdpathstring (uuid)yes

Responses

  • 204 Removed
  • 404 Not found (or not owned by the caller): Error

Example

curl -X DELETE "https://api.monitorsky.cloud/v1/groups/$GROUP_ID/contacts/$CONTACT_ID" \
  -H "Authorization: Bearer $MONITORSKY_API_KEY"

GET/groups/{groupId}/unsubscribes

Contacts that unsubscribed from this group

Permission: Groups (read) (groups:read)

Parameters

NameInTypeRequiredDescription
groupIdpathstring (uuid)yes

Responses

  • 200 OK: object

Example

curl "https://api.monitorsky.cloud/v1/groups/$GROUP_ID/unsubscribes" \
  -H "Authorization: Bearer $MONITORSKY_API_KEY"

Campaigns

GET/campaigns

List campaigns

Permission: Campaigns (read) (campaigns:read)

Parameters

NameInTypeRequiredDescription
limitqueryintegermin 1, max 500, default 100
offsetqueryintegermin 0, default 0
statusqueryCampaignStatus

Responses

Example

curl "https://api.monitorsky.cloud/v1/campaigns" \
  -H "Authorization: Bearer $MONITORSKY_API_KEY"

POST/campaigns

Create a campaign (draft)

Always created as draft. Sending is a separate call. The Terms of Service must be accepted in the app first (otherwise 403 tos_required).

Permission: Campaigns (create, edit, delete) (campaigns:write)

Request body

FieldTypeRequiredDescription
namestring
descriptionstring
messagestringMessage body (HTML as the composer produces it).
group_idsarray of string (uuid)

Responses

Example

curl -X POST "https://api.monitorsky.cloud/v1/campaigns" \
  -H "Authorization: Bearer $MONITORSKY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"My name"}'

GET/campaigns/{campaignId}

Get one campaign (with status and counters)

Permission: Campaigns (read) (campaigns:read)

Parameters

NameInTypeRequiredDescription
campaignIdpathstring (uuid)yes

Responses

  • 200 OK: Campaign
  • 404 Not found (or not owned by the caller): Error

Example

curl "https://api.monitorsky.cloud/v1/campaigns/$CAMPAIGN_ID" \
  -H "Authorization: Bearer $MONITORSKY_API_KEY"

PATCH/campaigns/{campaignId}

Edit a campaign (recalculates recipients)

Permission: Campaigns (create, edit, delete) (campaigns:write)

Parameters

NameInTypeRequiredDescription
campaignIdpathstring (uuid)yes

Request body

FieldTypeRequiredDescription
namestring
descriptionstring
messagestringMessage body (HTML as the composer produces it).
group_idsarray of string (uuid)

Responses

  • 200 OK: Campaign
  • 404 Not found (or not owned by the caller): Error

Example

curl -X PATCH "https://api.monitorsky.cloud/v1/campaigns/$CAMPAIGN_ID" \
  -H "Authorization: Bearer $MONITORSKY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"My name"}'

DELETE/campaigns/{campaignId}

Delete a campaign

Permission: Campaigns (create, edit, delete) (campaigns:write)

Parameters

NameInTypeRequiredDescription
campaignIdpathstring (uuid)yes

Responses

  • 204 Deleted

Example

curl -X DELETE "https://api.monitorsky.cloud/v1/campaigns/$CAMPAIGN_ID" \
  -H "Authorization: Bearer $MONITORSKY_API_KEY"

POST/campaigns/{campaignId}/copy

Duplicate a campaign as a new draft

Permission: Campaigns (create, edit, delete) (campaigns:write)

Parameters

NameInTypeRequiredDescription
campaignIdpathstring (uuid)yes

Responses

Example

curl -X POST "https://api.monitorsky.cloud/v1/campaigns/$CAMPAIGN_ID/copy" \
  -H "Authorization: Bearer $MONITORSKY_API_KEY"

GET/campaigns/{campaignId}/recipients

List a campaign's recipients (delivery and replies)

One row per recipient of a campaign that has been sent or is sending, with the delivery status and whether the person replied in Teams after the campaign message. A draft has no recipients yet. Sorted by name. No email addresses.

Permission: Campaigns (read) (campaigns:read)

Parameters

NameInTypeRequiredDescription
campaignIdpathstring (uuid)yes
limitqueryintegermin 1, max 500, default 100
offsetqueryintegermin 0, default 0
repliedquerybooleantrue: only recipients who replied; false: only those who did not

Responses

Example

curl "https://api.monitorsky.cloud/v1/campaigns/$CAMPAIGN_ID/recipients" \
  -H "Authorization: Bearer $MONITORSKY_API_KEY"

GET/campaigns/{campaignId}/send-preview

Preview a send or schedule (changes nothing)

Shows what sending (or, with scheduled_at, scheduling) this campaign would do now: the message text, the target groups, how many recipients it would reach, the plan limit and the connected Microsoft account the messages would come from. Nothing is changed or sent. Reading the sender makes one call to Microsoft; if that fails, the answer is 409 conflict "Teams connection problem, reconnect in the app."

Permission: Send campaigns (campaigns:send)

Parameters

NameInTypeRequiredDescription
campaignIdpathstring (uuid)yes
scheduled_atquerystring (date-time)Preview a schedule for this future time (ISO 8601 with a time zone)
accept_limitquerybooleanPreview with the plan limit accepted (fewer recipients) default false

Responses

Example

curl "https://api.monitorsky.cloud/v1/campaigns/$CAMPAIGN_ID/send-preview" \
  -H "Authorization: Bearer $MONITORSKY_API_KEY"

POST/campaigns/{campaignId}/schedule

Schedule a campaign

Needs at least one group. Plan checks run when scheduling (409 PLAN_LIMIT or TRIAL_EXPIRED).

Permission: Send campaigns (campaigns:send)

Parameters

NameInTypeRequiredDescription
campaignIdpathstring (uuid)yes

Request body

FieldTypeRequiredDescription
scheduled_atstring (date-time)yesMust be in the future.
accept_limitbooleandefault false

Responses

  • 200 Scheduled: Campaign
  • 409 Plan limit reached or trial expired: Error

Example

curl -X POST "https://api.monitorsky.cloud/v1/campaigns/$CAMPAIGN_ID/schedule" \
  -H "Authorization: Bearer $MONITORSKY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"scheduled_at":"2030-01-15T09:00:00Z"}'

POST/campaigns/{campaignId}/send

Send now (async)

Sends real Teams messages from your own Microsoft account. Returns 202 once validated; the messages are sent in the background. Poll GET /campaigns/{campaignId} until the status is sent or failed.

Permission: Send campaigns (campaigns:send)

Parameters

NameInTypeRequiredDescription
campaignIdpathstring (uuid)yes

Request body

FieldTypeRequiredDescription
confirmtrueyes
accept_limitbooleandefault false

Responses

  • 202 Started: object
  • 403 Error: Error
  • 409 Plan limit reached or trial expired: Error

Example

curl -X POST "https://api.monitorsky.cloud/v1/campaigns/$CAMPAIGN_ID/send" \
  -H "Authorization: Bearer $MONITORSKY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"confirm":true}'

POST/campaigns/{campaignId}/replies/sync

Check Teams for replies to this campaign

Throttled to once per 10 minutes per campaign.

Permission: Campaigns (create, edit, delete) (campaigns:write)

Parameters

NameInTypeRequiredDescription
campaignIdpathstring (uuid)yes

Responses

  • 200 OK: object

Example

curl -X POST "https://api.monitorsky.cloud/v1/campaigns/$CAMPAIGN_ID/replies/sync" \
  -H "Authorization: Bearer $MONITORSKY_API_KEY"

Stats

GET/stats

Dashboard totals (messages, campaigns, rates)

Permission: Statistics (read) (stats:read)

Responses

Example

curl "https://api.monitorsky.cloud/v1/stats" \
  -H "Authorization: Bearer $MONITORSKY_API_KEY"

Objects

Error

FieldTypeDescription
errorobject

PlanUsage

Your plan and usage. Field names are camelCase.

FieldTypeDescription
planstring
planLabelstring
contactLimitinteger | null
contactCountinteger
overLimitboolean
trialEndsAtstring (date-time) | null
trialExpiredboolean
grandfatheredbooleanThe account has a free period set by MonitorSky.
subscriptionStatusstring | null
currentPeriodEndstring (date-time) | null
grandfatheredUntilstring (date-time) | null

TeamsConnection

FieldTypeDescription
connectedboolean
tos_requiredboolean

SyncStatus

FieldTypeDescription
statusstring
phasestring
currentinteger
totalinteger
insertedinteger
alreadyRunningboolean
runIdstring
messagestring | null
errorstring | null
startedAtstring (date-time) | null
completedAtstring (date-time) | null

Stats

Dashboard totals for your account (snake_case) - message, campaign, contact and group counters, this month's counters and rates.

object

Contact

FieldTypeDescription
idstring (uuid)
namestring | null
emailstring | null
companystring | null
job_titlestring | null
countrystring | null
notestring | null
opt_in_statusstring | null
can_receive_campaignsboolean
connection_statusstring
total_messages_sentinteger
total_messages_openedinteger
last_activity_atstring (date-time) | null
groupsarray of object
created_atstring (date-time)
updated_atstring (date-time)

ContactList

FieldTypeDescription
dataarray of Contact
totalinteger
limitinteger
offsetinteger

GroupInput

FieldTypeDescription
namestring
descriptionstring | null
colorstring | null

Group

FieldTypeDescription
namestring
descriptionstring | null
colorstring | null
idstring (uuid)
member_countintegerActive members that can receive campaigns (not the raw size). The system group Needs identification is listed like any other group.
is_systembooleantrue for the system group "Needs identification", which MonitorSky manages: it cannot be edited, filled or used as a campaign target.
created_atstring (date-time)

CampaignStatus

Campaign status, always lowercase.

draft | scheduled | sending | sent | failed

CampaignInput

FieldTypeDescription
namestring
descriptionstring
messagestringMessage body (HTML as the composer produces it).
group_idsarray of string (uuid)

Campaign

FieldTypeDescription
idstring (uuid)
namestring
descriptionstring
messagestring
statusCampaignStatus
group_idsarray of string (uuid)
scheduled_atstring (date-time) | null
started_atstring (date-time) | null
completed_atstring (date-time) | null
recipientsinteger
deliveredinteger
repliedintegerRecipients who replied in Teams after the campaign message.
created_atstring (date-time)

CampaignList

FieldTypeDescription
dataarray of Campaign
totalinteger
limitinteger
offsetinteger

CampaignRecipient

FieldTypeDescription
idstring (uuid)
contact_idstring (uuid)
namestring | null
delivery_statuspending | delivered | failed | skippedskipped: not sent to this person; see skip_reason.
skip_reasonnot_connected | not_yet_replied | chat_request_pending | chat_request_pending: the person has not accepted your Teams chat request yet.
repliedbooleanThe person wrote in the 1:1 chat after the campaign message.
replied_atstring (date-time) | null

CampaignRecipientList

FieldTypeDescription
dataarray of CampaignRecipient
totalinteger
limitinteger
offsetinteger

SendPreview

FieldTypeDescription
previewtrue
actionsend | schedule
campaignobject
message_textstringThe message as plain text; placeholders such as {{name}} are shown as written.
attachmentsobject
groupsarray of object
recipient_countintegerRecipients the send would reach now.
will_send_tointegerEqual to recipient_count unless the plan limit is accepted.
accept_limitboolean
plan_limitobject | null
senderobject
scheduled_atstring (date-time) | null
readybooleantrue when blocking_issues is empty.
blocking_issuesarray of not_draft | tos_required | no_groups | no_recipients | trial_expired | plan_limit