For agents and integrators
Calvis API.
Calvis is a marketplace that connects customers with licensed security agencies. This page describes how software connects to it: a REST API, a hosted MCP server, and the OAuth 2.1 flow that authorizes both on behalf of a signed-in Calvis customer, agency, or operator.
01 REST API
The Calvis REST API is served from a single base URL. Every request carries a bearer token and returns JSON.
https://api.calvis.com/api/v2/
02 MCP server
A hosted Model Context Protocol server over Streamable HTTP. An unauthenticated request returns 401 with a WWW-Authenticate header naming the resource metadata to read next.
https://mcp.calvis.com/mcp
Both surfaces act only on behalf of the user who authorized them. A token is scoped to that user's own permissions — a customer sees their own bookings, an agency its own jobs and guards — and grants nothing beyond what that account can already do in the dashboard.
Authentication.
OAuth 2.1: dynamic client registration, then authorization code with PKCE. There is no API key to request and no manual onboarding step — a client registers itself and the user approves it.
01 Register a client
Dynamic client registration (RFC 7591) is open at the registration endpoint. Register as a public client — Calvis issues no client secret, so send token_endpoint_auth_method: "none" and rely on PKCE.
POST /api/v2/oauth/register
curl -X POST https://api.calvis.com/api/v2/oauth/register \
-H "Content-Type: application/json" \
-d '{
"client_name": "Example Integration",
"redirect_uris": ["https://example.com/callback"],
"grant_types": ["authorization_code", "refresh_token"],
"response_types": ["code"],
"token_endpoint_auth_method": "none",
"scope": "mcp"
}'02 Send the user to authorize
Generate a code verifier, derive an S256 challenge from it, and send the user to the authorization page. S256 is the only challenge method accepted; plain is rejected. The user signs in and approves the request themselves.
GET https://app.calvis.com/oauth/authorize
https://app.calvis.com/oauth/authorize
?response_type=code
&client_id=YOUR_CLIENT_ID
&redirect_uri=https://example.com/callback
&scope=mcp
&state=RANDOM_STATE
&code_challenge=BASE64URL_SHA256_OF_VERIFIER
&code_challenge_method=S25603 Exchange the code for a token
Post the authorization code back with the original code verifier. The response carries an access token, a refresh token, and the granted scope.
POST /api/v2/oauth/token
curl -X POST https://api.calvis.com/api/v2/oauth/token \
-H "Content-Type: application/x-www-form-urlencoded" \
-d grant_type=authorization_code \
-d code=AUTHORIZATION_CODE \
-d redirect_uri=https://example.com/callback \
-d client_id=YOUR_CLIENT_ID \
-d code_verifier=YOUR_CODE_VERIFIER04 Refresh before expiry
Access tokens last 30 days and refresh tokens 90 days. Use the refresh grant to get a new access token without sending the user back through approval.
POST /api/v2/oauth/token
curl -X POST https://api.calvis.com/api/v2/oauth/token \
-H "Content-Type: application/x-www-form-urlencoded" \
-d grant_type=refresh_token \
-d refresh_token=YOUR_REFRESH_TOKEN \
-d client_id=YOUR_CLIENT_IDSending the token
Pass the access token as a bearer credential in the Authorization header on every request to either surface.
Lifetimes
Access tokens are valid for 30 days, refresh tokens for 90. Refreshing does not require the user again.
Revocation
Users revoke an authorized client at any time from settings in the Calvis dashboard. A revoked token stops working immediately.
Finding what you can do.
Calvis does not publish an OpenAPI specification. The authoritative list of available operations is the MCP server's own tool catalog: call tools/list with a valid token and it returns every tool your account can reach, each with its JSON Schema. That catalog changes as capabilities ship, so read it at runtime rather than hard-coding a list.
POST https://mcp.calvis.com/mcp
curl -X POST https://mcp.calvis.com/mcp \
-H "Authorization: Bearer ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc": "2.0", "id": 1, "method": "tools/list"}'Health
An unauthenticated health check for the API, suitable for readiness probes and status pages.
GET /api/v2/health/
curl https://api.calvis.com/api/v2/health/Discovery documents.
Everything on this page is also published in machine-readable form. A client that starts from the protected resource metadata can complete the whole flow without reading prose.
/auth.md
The authentication flow in full, written for machine consumption.
/.well-known/oauth-protected-resource
Protected resource metadata (RFC 9728), naming the authorization server.
/.well-known/oauth-authorization-server
Authorization server metadata (RFC 8414): endpoints, grants, scopes, PKCE methods.
api.calvis.com/.well-known/oauth-protected-resource
The same protected resource metadata served from the API origin.
api.calvis.com/.well-known/oauth-authorization-server
The authoritative authorization server metadata, issued by api.calvis.com.
mcp.calvis.com/.well-known/oauth-protected-resource
Protected resource metadata for the MCP server, pointing back to api.calvis.com.
/.well-known/api-catalog
The catalog of APIs Calvis publishes, linking to this page and to each service.
/.well-known/mcp/server-card.json
The MCP server card: transport, endpoint, and authentication requirements.
/.well-known/ai-catalog.json
Machine-readable index of the interfaces and documents on this site.
/.well-known/agent-skills/index.json
Index of the published agent skills and where each one is described.
/llms.txt
Plain-text overview of Calvis, its services, and its coverage areas.
Building something on Calvis?
Tell us what you need.
If an operation you need is missing from the tool catalog, we want to hear about it.
support@calvis.com