Every API here is available over the APIs.io API and to AI agents over MCP.
openapi: 3.2.0
info:
title: Presify public Discovery 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: Discovery
description: Machine-readable metadata (RFC 8414, RFC 9728, RFC 9116).
paths:
/.well-known/oauth-authorization-server:
get:
operationId: getAuthorizationServerMetadata
tags:
- Discovery
summary: OAuth 2.0 authorization server metadata (RFC 8414)
description: Endpoints, grant types and PKCE methods of the Presify authorization server. The issuer is https://app.presify.io; the same document is served on the public website host for discovery convenience.
responses:
'200':
description: Authorization server metadata.
content:
application/json:
schema:
$ref: '#/components/schemas/AuthorizationServerMetadata'
headers:
Deprecation:
$ref: '#/components/headers/Deprecation'
Sunset:
$ref: '#/components/headers/Sunset'
/.well-known/oauth-authorization-server/api/mcp:
get:
operationId: getAuthorizationServerMetadataForMcp
tags:
- Discovery
summary: Authorization server metadata, path-inserted variant
description: Identical to /.well-known/oauth-authorization-server. Served because several MCP clients apply RFC 9728 path insertion to the authorization-server URL when the protected resource lives at a path.
responses:
'200':
description: Authorization server metadata.
content:
application/json:
schema:
$ref: '#/components/schemas/AuthorizationServerMetadata'
headers:
Deprecation:
$ref: '#/components/headers/Deprecation'
Sunset:
$ref: '#/components/headers/Sunset'
/.well-known/oauth-protected-resource:
get:
operationId: getProtectedResourceMetadata
tags:
- Discovery
summary: Protected resource metadata for the MCP endpoint (RFC 9728)
description: Names the MCP resource URL, the authorization server that protects it, the bearer method and the supported scope.
responses:
'200':
description: Protected resource metadata.
content:
application/json:
schema:
$ref: '#/components/schemas/ProtectedResourceMetadata'
headers:
Deprecation:
$ref: '#/components/headers/Deprecation'
Sunset:
$ref: '#/components/headers/Sunset'
/.well-known/oauth-protected-resource/api/mcp:
get:
operationId: getProtectedResourceMetadataForMcp
tags:
- Discovery
summary: Protected resource metadata, path-inserted variant
description: Identical to /.well-known/oauth-protected-resource; this is the URL the 401 WWW-Authenticate challenge from /api/mcp points at.
responses:
'200':
description: Protected resource metadata.
content:
application/json:
schema:
$ref: '#/components/schemas/ProtectedResourceMetadata'
headers:
Deprecation:
$ref: '#/components/headers/Deprecation'
Sunset:
$ref: '#/components/headers/Sunset'
/.well-known/mcp/server-card.json:
get:
operationId: getMcpServerCard
tags:
- Discovery
summary: MCP server card (pre-connection discovery)
description: Server URL, transport, protocol revision, capabilities, OAuth details and the full read-only tool catalog with input schemas, so an agent can decide to connect before its first request. The live tools/list is still gated by plan and role.
responses:
'200':
description: Server card.
content:
application/json:
schema:
$ref: '#/components/schemas/McpServerCard'
headers:
Deprecation:
$ref: '#/components/headers/Deprecation'
Sunset:
$ref: '#/components/headers/Sunset'
/.well-known/mcp:
get:
operationId: getMcpServerCardAlias
tags:
- Discovery
summary: MCP server card, directory-style alias
description: Identical to /.well-known/mcp/server-card.json, served at the path some clients probe first.
responses:
'200':
description: Server card.
content:
application/json:
schema:
$ref: '#/components/schemas/McpServerCard'
headers:
Deprecation:
$ref: '#/components/headers/Deprecation'
Sunset:
$ref: '#/components/headers/Sunset'
/.well-known/security.txt:
get:
operationId: getSecurityTxt
tags:
- Discovery
summary: Vulnerability disclosure policy (RFC 9116)
description: Contact, policy and expiry lines for security researchers.
responses:
'200':
description: security.txt document.
content:
text/plain:
schema:
type: string
headers:
Deprecation:
$ref: '#/components/headers/Deprecation'
Sunset:
$ref: '#/components/headers/Sunset'
components:
schemas:
AuthorizationServerMetadata:
type: object
description: RFC 8414 document.
required:
- issuer
- authorization_endpoint
- token_endpoint
- response_types_supported
properties:
issuer:
type: string
format: uri
authorization_endpoint:
type: string
format: uri
token_endpoint:
type: string
format: uri
registration_endpoint:
type: string
format: uri
revocation_endpoint:
type: string
format: uri
response_types_supported:
type: array
items:
type: string
grant_types_supported:
type: array
items:
type: string
code_challenge_methods_supported:
type: array
items:
type: string
token_endpoint_auth_methods_supported:
type: array
items:
type: string
revocation_endpoint_auth_methods_supported:
type: array
items:
type: string
scopes_supported:
type: array
items:
type: string
service_documentation:
type: string
format: uri
description: Public setup guide for connecting an MCP client.
client_id_metadata_document_supported:
type: boolean
description: true when an https URL naming a Client ID Metadata Document is accepted as client_id (draft-ietf-oauth-client-id-metadata-document). Absent while the feature is switched off; dynamic client registration works either way.
authorization_response_iss_parameter_supported:
type: boolean
description: 'true: every authorization response, success or error, carries iss (RFC 9207). A client should reject a response from Presify that lacks it.'
McpServerCard:
type: object
description: MCP server card (SEP-1649 draft fields plus registry-style remotes).
required:
- name
- description
- version
- serverUrl
- protocolVersion
- transport
- tools
properties:
name:
type: string
description: Reverse-DNS server name.
title:
type: string
description:
type: string
version:
type: string
serverUrl:
type: string
format: uri
websiteUrl:
type: string
format: uri
documentationUrl:
type: string
format: uri
openapiUrl:
type: string
format: uri
protocolVersion:
type: string
transport:
type: object
required:
- type
- endpoint
properties:
type:
type: string
enum:
- streamable-http
endpoint:
type: string
format: uri
responseMode:
type: string
enum:
- json
capabilities:
type: object
additionalProperties: true
authentication:
type: object
additionalProperties: true
remotes:
type: array
items:
type: object
additionalProperties: true
tools:
type: array
items:
type: object
required:
- name
- description
- inputSchema
properties:
name:
type: string
title:
type: string
description:
type: string
inputSchema:
type: object
additionalProperties: true
annotations:
type: object
additionalProperties: true
ProtectedResourceMetadata:
type: object
description: RFC 9728 document.
required:
- resource
- authorization_servers
properties:
resource:
type: string
format: uri
authorization_servers:
type: array
items:
type: string
format: uri
bearer_methods_supported:
type: array
items:
type: string
scopes_supported:
type: array
items:
type: string
resource_name:
type: string
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.'