OpenAPI Specification¶
The Contio Partner API is fully documented using OpenAPI (Swagger) specification.
Browse Interactive API Reference
Download Specifications¶
-
OpenAPI JSON
OpenAPI 2.0 specification in JSON format
-
OpenAPI YAML
OpenAPI 2.0 specification in YAML format
-
Postman Collection
Ready-to-use Postman collection for API testing
Using the OpenAPI Spec¶
Import into Postman¶
- Open Postman
- Click Import in the top left
- Select the
partner_postman_collection.jsonfile - Configure your environment variables:
baseUrl:https://api.contio.aipartner_client_id: Your client IDpartner_client_secret: Your client secretpartner_api_key: Your API key
Generate Client Code¶
Use the OpenAPI spec to generate client libraries in any language:
# Using OpenAPI Generator
openapi-generator generate \
-i partner-openapi.json \
-g typescript-axios \
-o ./generated-client
# Using Swagger Codegen
swagger-codegen generate \
-i partner-openapi.json \
-l python \
-o ./python-client
View in Swagger UI¶
You can view the specification in Swagger UI:
- Go to Swagger Editor
- File → Import File → Select
partner-openapi.yaml - Explore the API documentation interactively
Specification Overview¶
Endpoints Covered¶
| Category | Endpoints |
|---|---|
| OAuth 2.0 | /oauth2/authorize, /oauth2/token, /auth/initiate, /auth/verify |
| User API | /v1/partner/user/meetings/*, /v1/partner/user/action-items/* |
| Admin API | /v1/partner/admin/automation/*, /v1/partner/admin/app/* |
Authentication Schemes¶
The spec defines two authentication schemes:
-
OAuth2 - For user operations on behalf of connected users
- Token type:
Bearertoken inAuthorizationheader - Scopes:
read(data access),write(data modification) - See Authentication Guide for OAuth flow details
- Token type:
-
ApiKey - For admin/management operations
- Required headers: Both
X-API-KeyANDX-Client-IDmust be provided X-API-Key: Your secret API key (never share or expose in client-side code)X-Client-ID: Your partner application's client ID- See REST API Quick Start for examples
- Required headers: Both
Keeping Up to Date¶
The OpenAPI specification is regenerated with each API release. Check the version in the spec:
Support¶
Issues with the OpenAPI spec?
- Report issues to partner-support@contio.ai
- Include the spec version and the issue description