Presify Documents API
Agent-facing documents and Markdown representations.
Agent-facing documents and Markdown representations.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/presify-io:presify-io-documents-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Presify public Documents API
version: 26.11.8
summary: 'Microsoft Teams presence tracker: OAuth 2.0 authorization server, MCP endpoint, discovery documents.'
description: 'Presify is a Microsoft Teams presence tracker: it keeps presence history (who was online, when, and for how long) for owners, managers, and team leads on Microsoft 365.
This document describes the PUBLIC machine surface. Tenant data is read through the Model Context Protocol endpoint (`POST /api/mcp`), which authenticates with OAuth 2.0 (authorization code + PKCE; a client identifies itself through dynamic client registration or an OAuth Client ID Metadata Document) or a personal access token. Every MCP tool is a pure read, scoped to what the connected person may see in Presify. There is no REST resource API for tenant data; the browser app''s session-cookie routes are not a supported integration surface and are not listed here.
Public documents: `/llms.txt` (site index for AI assistants, with when-to-use guidance), `/sitemap.xml`, `/.well-known/security.txt`. Public pages answer `Accept: text/markdown` with a Markdown representation (`Vary: Accept`). Unknown paths return a real 404 (JSON under `/api/`, Markdown for machine clients, HTML for browsers); an unsupported method on a `/api/` route returns a JSON 405 with an `Allow` header.
## Versioning and deprecation
The paths in this document are permanent contracts: `/api/mcp`, the `/api/oauth/*` endpoints and the `/.well-known/*` documents never move or change shape incompatibly. There is no URL version segment. The MCP endpoint is versioned by the `MCP-Protocol-Version` header (the server negotiates down to the newest revision at or below the one requested, and keeps serving older supported revisions). If an operation or protocol revision is ever retired, every affected response carries `Deprecation` (RFC 9745) and `Sunset` (RFC 8594) headers plus a `Link` with rel="deprecation" for at least 90 days before removal, the operation is marked `deprecated: true` here first, and after the sunset date it answers 410 Gone. Those headers are declared on every 2xx response below; none is sent today. New optional fields and new operations are added without notice. Full policy: https://presify.io/docs/api-versioning
## Rate limits
Every `/api/mcp` response, including the unauthenticated handshake (initialize, ping, resources/list, resources/read) and the 401 challenge, carries IETF RateLimit header fields: `RateLimit-Policy` (both windows: 60 requests per minute per grant and 300 per minute per tenant, 2x burst) and `RateLimit` (remaining requests and seconds to full refill for the tighter window), plus the legacy `RateLimit-Limit` / `RateLimit-Remaining` / `RateLimit-Reset` trio. A 429 adds `Retry-After`. Client registration is throttled per IP (429 with `Retry-After`).
The edge also caps each client IP at 2,000 requests per 5 minutes across the whole site; over it, CloudFront answers 429 with a text/html page (not JSON-RPC), `Retry-After: 300` and no RateLimit fields. Edge security rules can also refuse a request with a text/html 403 before it reaches the app, for example a request without a User-Agent header or with a body over 8 KB.
Support: support@presify.io, Monday to Friday, 9am to 5pm US Eastern. Legal: https://presify.io/legal/terms, https://presify.io/legal/privacy.'
termsOfService: https://presify.io/legal/terms
contact:
name: Presify support
url: https://presify.io/contact
email: support@presify.io
servers:
- url: https://app.presify.io
description: 'Canonical API host: OAuth 2.0 issuer and MCP resource.'
- url: https://presify.io
description: Public website. The discovery and document endpoints also answer here.
tags:
- name: Documents
description: Agent-facing documents and Markdown representations.
paths:
/llms.txt:
get:
operationId: getLlmsTxt
tags:
- Documents
summary: Site index for AI assistants (llmstxt.org)
description: 'Curated Markdown summary of Presify: what it is, when to use it, how an agent connects, and links to every public page. Generated from the same sources as the pricing page and the blog, so it cannot disagree with them.'
responses:
'200':
description: llms.txt document (Markdown, served as text/plain).
content:
text/plain:
schema:
type: string
headers:
Deprecation:
$ref: '#/components/headers/Deprecation'
Sunset:
$ref: '#/components/headers/Sunset'
/openapi.json:
get:
operationId: getOpenApiDocument
tags:
- Documents
summary: This document
description: OpenAPI 3.1 description of the public machine surface.
responses:
'200':
description: OpenAPI document.
content:
application/json:
schema:
type: object
headers:
Deprecation:
$ref: '#/components/headers/Deprecation'
Sunset:
$ref: '#/components/headers/Sunset'
/sitemap.xml:
get:
operationId: getSitemap
tags:
- Documents
summary: XML sitemap of the public website
description: Every public, indexable page, including the runtime-visible blog posts.
responses:
'200':
description: Sitemap.
content:
application/xml:
schema:
type: string
headers:
Deprecation:
$ref: '#/components/headers/Deprecation'
Sunset:
$ref: '#/components/headers/Sunset'
/markdown/{path}:
get:
operationId: getMarkdownRepresentation
tags:
- Documents
summary: Markdown representation of a public page
description: 'The Markdown body a public page serves when asked with `Accept: text/markdown` on its own URL (the preferred way). This direct URL is an alternate representation: it carries `X-Robots-Tag: noindex` and a rel="canonical" Link header to the HTML page. Supported paths: the marketing pages, /blog and /blog/{slug}, /comparisons and /comparisons/{slug}, /legal/{doc}.'
parameters:
- name: path
in: path
required: true
description: The page path without the leading slash, e.g. `docs`, `legal/privacy`, `blog/how-to-get-a-teams-presence-report`.
schema:
type: string
pattern: ^[a-z0-9/-]+$
responses:
'200':
description: Markdown document.
headers:
Vary:
description: Accept
schema:
type: string
Link:
description: rel="canonical" to the HTML page.
schema:
type: string
Deprecation:
$ref: '#/components/headers/Deprecation'
Sunset:
$ref: '#/components/headers/Sunset'
content:
text/markdown:
schema:
type: string
'404':
description: No such page. The body points at llms.txt, openapi.json and the sitemap.
content:
text/markdown:
schema:
type: string
components:
headers:
Sunset:
description: 'RFC 8594. Present only once the operation is scheduled for retirement: the HTTP date after which it stops responding (410 Gone). Accompanied by a Link header with rel="deprecation" pointing at the policy page.'
schema:
type: string
example: Wed, 01 Apr 2027 00:00:00 GMT
Deprecation:
description: 'RFC 9745. Present only once the operation is scheduled for retirement: the moment the deprecation took effect, as an IMF-fixdate or a structured-field date (@ + Unix seconds). Sent at least 90 days before the Sunset date. Not sent today: nothing is deprecated.'
schema:
type: string
example: '@1767225600'
securitySchemes:
oauth2:
type: oauth2
description: OAuth 2.0 authorization code with PKCE (S256 required). Clients register at https://app.presify.io/api/oauth/register (dynamic client registration), or use the https URL of their Client ID Metadata Document as client_id with no registration; metadata at https://app.presify.io/.well-known/oauth-authorization-server. Revocation at https://app.presify.io/api/oauth/revoke.
flows:
authorizationCode:
authorizationUrl: https://app.presify.io/api/oauth/authorize
tokenUrl: https://app.presify.io/api/oauth/token
refreshUrl: https://app.presify.io/api/oauth/token
scopes:
presify:read: Read presence history the connected person may see in Presify. The only scope; every tool is read-only.
personalAccessToken:
type: http
scheme: bearer
description: Personal access token minted by a Presify owner or admin in Settings, then Connections (365-day lifetime, revocable). Same authorization as an OAuth token.
externalDocs:
description: Presify documentation
url: https://presify.io/docs
x-versioning-policy:
scheme: permanent-contract
policyUrl: https://presify.io/docs/api-versioning
urlVersioning: none
mcpProtocolVersionHeader: MCP-Protocol-Version
mcpProtocolVersions:
- '2026-07-28'
- '2025-06-18'
- '2025-03-26'
deprecationHeaders:
- Deprecation
- Sunset
- Link; rel="deprecation"
minimumNoticeDays: 90
afterSunset: 410 Gone with the JSON error shape; retired MCP tools leave tools/list.
currentlyDeprecated: []
deprecationNotice: Deprecation (RFC 9745) and Sunset (RFC 8594) headers at least 90 days before removal, announced in this document first.
x-mcp:
serverCard: https://app.presify.io/.well-known/mcp/server-card.json
endpoint: https://app.presify.io/api/mcp
transport: streamable-http
responseMode: json
protocolVersions:
- '2026-07-28'
- '2025-06-18'
- '2025-03-26'
authorizationServer: https://app.presify.io
protectedResourceMetadata: https://app.presify.io/.well-known/oauth-protected-resource/api/mcp
scope: presify:read
readOnly: true
tools:
- name: get_workspace_info
title: Workspace overview
description: 'Returns the connected Presify workspace at a glance: workspace name, plan tier with seat and retention limits, subscription and trial state, monitored-user counts (active, paused, pending enrollment), presence-collection health, and what the connected person may see. Call this first to orient yourself.'
- name: list_monitored_users
title: Monitored people
description: 'Lists the people monitored in this Presify workspace with their status, department, timezone, business hours, and flags (collection paused; legal hold, shown to owners and admins and null for managers). Filter by monitoring status (active by default; former users appear under removed statuses), department, or a name/email search. Paginated: up to 200 per page with offset. Use this to find a person before calling per-user tools.'
- name: get_user
title: Person overview
description: 'Returns one monitored person: profile (name, email, department, timezone, business hours, monitoring status, flags; the legal hold flag is shown to owners and admins and is null for managers), their latest presence reading (latestReading.at is when it last changed; when latestReading.atIsLowerBound is true it is the start of the workspace retention window, which moves forward each day, so describe the status as unchanged since at least that date), and their last 7 daily presence totals (nightly rollups, so today is never included). Accepts a name, email, or Microsoft user id. For deeper trends use get_user_stats.'
- name: get_user_stats
title: Person deep stats
description: 'Computes rich presence statistics for one person over the last 14 weeks (bounded by plan retention): this week and month with honest same-elapsed-point comparisons to the prior period, a weekly trend, business-hours versus after-hours split, typical day rhythm (median start and end, drift), uninterrupted focus blocks, meeting time, state mix, and longest online stretch. Time when Presify could not read presence counts as No data, never as Offline, and time when collection was off on purpose is not counted as possible time. Accepts a name, email, or Microsoft user id.'
- name: get_user_timeline
title: Person day timeline
description: 'Returns one person''s presence timeline for one local calendar day: ordered segments with local start and end times, duration in seconds, and the presence status held in each ("Available", "Busy", "In a call", "Away", "Offline", and so on). "No data" marks spans where collection was not running, which is different from a confirmed Offline reading. Times are wall-clock in the person''s own timezone; the response names the zone and the business-hours window. Days outside the plan retention window return no segments.'
- name: get_current_presence
title: Who is online now
description: 'Returns the latest Microsoft Teams presence reading for each actively monitored person: availability, activity, presence bucket, when it last changed (lastChangeAt), and whether they count as online right now (fresh reading within the last few minutes). When lastChangeIsLowerBound is true the status has not changed for longer than the workspace retention window: lastChangeAt is the start of that window, which moves forward each day, so describe it as unchanged since at least that date, never as a change at that time. Includes data-freshness info so you can caveat stale results. Optionally filter by department. Up to 500 people per call.'
- name: get_presence_summary
title: Presence summary
description: 'Sums presence time over a date range from nightly per-person daily rollups, grouped by person or by day. Returns seconds in each presence bucket (online, away, offline or no signal, out of office); Busy, Do Not Disturb, in a call and Presenting count as online. Grouped by person, rows are in name order and include everyone with presence data in the range: daysWithData counts the days Presify holds a status for that person for at least part of the day (a status carried from an earlier reading counts, so quiet Offline days and today so far count, but never across an interruption to collection of 15 minutes or more), the Member presence report''s Days with data, in each person''s own time zone; daysTotaled counts the days whose nightly rollups are summed into the seconds, so the two can differ until the latest days are rolled up; sort them by any column when asked. Grouped by day, rows are the dates that have rollups, so today is never listed. Use for questions like "how much was the team online last week" or "show daily totals for June". Range up to 366 days; optionally restrict to specific people (Microsoft user ids) or one department. Days outside the plan retention window have no data.'
- name: compare_users
title: Compare people
description: 'Compares 2 to 10 people side by side over a date range using whole-day presence totals from the nightly rollups: online, away, offline or no signal, and out-of-office seconds (Busy, Do Not Disturb, in a call and Presenting count as online), days with online time, and the average online per day with online time (quiet Offline days do not lower it); daysTotaled is how many days those rollups cover. daysWithData counts the days Presify holds a status for the person for at least part of the day (a status carried from an earlier reading counts, so quiet Offline days and today so far count, but never across an interruption to collection of 15 minutes or more), the Member presence report''s Days with data, in each person''s own time zone, so it can differ from daysTotaled until the latest days are rolled up. People come back in the order you list them. Range up to 92 days. Each entry accepts a name, email, or Microsoft user id. Note: totals are whole-day, not clipped to business hours; the Team presence report on the Presify Reports page counts only inside the hours it is run with (by default each person''s own working hours, in their own time zone), so its numbers differ from these.'
- name: get_coverage
title: Team coverage grid
description: 'Builds a typical-week coverage grid: for each weekday hour, how many of the selected people are typically online (fractional headcount and percent of team), plus best and thinnest hours. Answers "when is the team reachable" and "where are our coverage gaps". Each cell also carries observed and possible minutes and their ratio (confidence): time Presify could not read presence is unobserved, never offline, and time when collection was off on purpose (a person paused or stopped, a paused or read-only workspace, a canceled subscription) is left out of possible, so confidence measures only unplanned loss. Hard caps: at most 31 days of history and 50 people per call; scope the users list or department for bigger teams. Requires a plan with the Coverage feature.'
- name: get_connection_health
title: Microsoft 365 connection health
description: 'Reports the health of this workspace connection to Microsoft 365: whether presence collection is running (active, delayed, paused for reconsent, or suspended), the last successful poll time, how reliably Microsoft Graph has been answering over the chosen window (overall and per day), and the interruptions to collection of 15 minutes or more in the window with their cause (Microsoft 365 access, a delay in Presify collection, or collection off on purpose). Presence figures show the time in those interruptions when Presify could not read presence as No data (a Microsoft 365 access problem while presence was still being read leaves them as they are), and time when collection was off on purpose does not count against coverage. It also reports directory access: which Microsoft directory reads (users, group membership) are failing, since when, and the fix. Use when data looks missing or stale, new people are not showing up, or for an operations checkup. Window up to 90 days. Every credentials field except note is always null: Presify manages the Microsoft app credential, so there is nothing for this workspace to renew.'
- name: list_notifications
title: Workspace notices
description: 'Lists recent in-app workspace notices for admins: billing events, connection health changes, enrollment reminders, digest highlights. Up to 50, newest first; optionally unread only. Useful for "anything needing attention in Presify?".'
- name: list_anomalies
title: Flagged presence patterns
description: 'Lists flagged presence patterns (anomalies) with factual descriptions of what was measured: unbroken Available runs, missing idle time, overnight presence, no activity variation, robotic regularity, weekend uniformity. Filter by person, pattern type, date range, or open/dismissed. Up to 200, newest first. Descriptions state the observed pattern and computation only, never a cause or intent. To inspect a flagged day the way the app does, follow up with get_user_timeline using the entry''s person and date.'
- name: get_anomaly_summary
title: Flagged-pattern summary
description: Counts flagged presence patterns by type over a date range (open and dismissed separately), with the latest detection per type. Use for triage and trend questions like "are overnight flags increasing". Range up to 366 days.
- name: list_reports
title: Generated reports
description: 'Lists recently generated report jobs (Member presence report PDFs and Excel workbooks): type, status, who requested them, when. Up to 50, newest first. Use get_report_download for a finished report file link.'
- name: get_report_download
title: Report download link
description: Returns a fresh download link for a completed report by reportId (from list_reports). Links are valid for 15 minutes and are generated per request; ask again if one expires.
- name: list_scheduled_reports
title: Scheduled reports
description: 'Lists this workspace recurring report schedules: report type, cadence in plain words, window, recipients, status, and the next run time. Answers "when does my next report go out".'
- name: list_audit_events
title: Audit trail
description: 'Lists this workspace audit trail: who did what and when (settings changes, enrollments, report requests, connections). Filter by action prefix or date range. Up to 100, newest first. Owner only, on plans with the audit log feature.'
- name: search
title: Search this workspace
description: Searches this Presify workspace across monitored people (name, email, department), flagged presence patterns, and generated reports. Returns up to 20 results with namespaced ids for fetch. Built for research-style clients; prefer the specific tools when you know what you need.
- name: fetch
title: Fetch a search result
description: 'Fetches the full record behind a search result id (user:, anomaly:, or report: prefixed). Companion to search for research-style clients.'
x-agent-guidance:
llmsTxt: https://presify.io/llms.txt
sitemap: https://presify.io/sitemap.xml
markdownNegotiation: 'Send Accept: text/markdown on any public page URL.'
notFound: 'Unknown paths return HTTP 404: JSON under /api/, Markdown for non-browser clients.'