Prosp Tenant API
Self-serve onboarding for your CRM connection (`/api/v1/tenant/odoo-connection`).
Self-serve onboarding for your CRM connection (`/api/v1/tenant/odoo-connection`).
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/prosp-cc:prosp-cc-tenant-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: Prosp Cc Tenant API
version: 0.4.0
contact:
name: Prosp API support
url: https://prosp.cc/
license:
name: Proprietary
url: https://prosp.cc/
description: 'Operations tagged tenant across 2 of this provider''s published API definitions: openapi.yaml, prosp-cc-openapi.yaml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.prosp.cc
description: Production
security:
- cognitoClientCredentials:
- mcp/execute
tags:
- name: Tenant
description: Self-serve onboarding for your CRM connection (`/api/v1/tenant/odoo-connection`).
paths:
/api/v1/tenant/odoo-connection:
description: 'Self-serve onboarding for your Odoo CRM connection. You submit your own Odoo destination
and credentials; the connection is live-tested (and any stage/team/user id validated)
before anything is saved, and stored encrypted-at-rest. Your identity comes from the
access token — a body `customer_id` that disagrees with it is rejected. The `odoo_api_key`
is write-only: it is never returned on any response. `odoo_url` must be a public http(s)
host — a URL resolving to a private, loopback, link-local, reserved, or multicast address
is rejected with `422 unsafe_url`.
'
post:
tags:
- Tenant
operationId: submitOdooConnection
summary: Submit / activate this tenant's Odoo connection
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/TenantOdooConnectionRequest'
responses:
'200':
description: Connection re-validated and updated (a connection already existed).
content:
application/json:
schema:
$ref: '#/components/schemas/TenantOdooConnection'
'201':
description: Connection validated and activated (first registration).
content:
application/json:
schema:
$ref: '#/components/schemas/TenantOdooConnection'
'400':
description: Malformed body or a `customer_id` that disagrees with the token identity.
content:
application/json:
schema:
$ref: '#/components/schemas/TenantConnectionError'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
description: The token identity is reserved-unrouted and can never map to an Odoo.
content:
application/json:
schema:
$ref: '#/components/schemas/TenantConnectionError'
'409':
description: The destination is already registered, or an onboarding is in progress.
content:
application/json:
schema:
$ref: '#/components/schemas/TenantConnectionError'
'422':
description: 'Unprocessable — the live connection test failed, an FK id does not exist,
`odoo_url` resolves to a non-public (internal) address (`error: unsafe_url`), or
host validation timed out (`error: url_validation_timeout`, fail-closed).
'
content:
application/json:
schema:
$ref: '#/components/schemas/TenantConnectionError'
'429':
$ref: '#/components/responses/RateLimited'
'503':
description: 'Tenant-registry unavailable — either not configured on this deployment
(`error: registry_unavailable`) or the backend is temporarily unreachable
(`error: registry_degraded`, `retryable: true`, with a `Retry-After` header —
safe to retry with backoff).
'
content:
application/json:
schema:
$ref: '#/components/schemas/TenantConnectionError'
get:
tags:
- Tenant
operationId: getOdooConnection
summary: Get this tenant's registered Odoo connection (no secrets)
responses:
'200':
description: The registered connection.
content:
application/json:
schema:
$ref: '#/components/schemas/TenantOdooConnection'
'401':
$ref: '#/components/responses/Unauthorized'
'404':
description: No Odoo connection registered for this tenant.
content:
application/json:
schema:
$ref: '#/components/schemas/TenantConnectionError'
'429':
$ref: '#/components/responses/RateLimited'
'503':
description: 'Tenant-registry unavailable — either not configured on this deployment
(`error: registry_unavailable`) or the backend is temporarily unreachable
(`error: registry_degraded`, `retryable: true`, with a `Retry-After` header —
safe to retry with backoff).
'
content:
application/json:
schema:
$ref: '#/components/schemas/TenantConnectionError'
delete:
tags:
- Tenant
operationId: revokeOdooConnection
summary: Revoke this tenant's Odoo connection (idempotent)
responses:
'200':
description: 'Revoked (idempotent). `status` is `revoked` when a connection existed and was
removed, or `not_connected` when nothing was registered (no-op).
'
content:
application/json:
schema:
$ref: '#/components/schemas/TenantOdooConnectionRevoked'
'401':
$ref: '#/components/responses/Unauthorized'
'429':
$ref: '#/components/responses/RateLimited'
'503':
description: 'Tenant-registry unavailable — either not configured on this deployment
(`error: registry_unavailable`) or the backend is temporarily unreachable
(`error: registry_degraded`, `retryable: true`, with a `Retry-After` header —
safe to retry with backoff).
'
content:
application/json:
schema:
$ref: '#/components/schemas/TenantConnectionError'
servers:
- url: https://api.prosp.cc
description: Production
components:
schemas:
TenantOdooConnection:
type: object
additionalProperties: false
description: 'Your registered Odoo connection, without any secrets. `validated_at` and `message`
are present only on a successful submit response. The `odoo_api_key` and any other
credential material are never included in this response.
'
required:
- customer_id
- odoo_url
- odoo_db
- odoo_uid
- status
properties:
customer_id:
type: string
description: Your tenant identifier (derived from the access token).
odoo_url:
type: string
description: The Odoo base URL leads are written to.
examples:
- https://mycompany.odoo.com
odoo_db:
type: string
description: Your Odoo database name — the API authentication parameter identifying which database on the Odoo server leads are synced into. Leads are written through Odoo's JSON-RPC API; no direct database access is used.
odoo_uid:
type: integer
description: The Odoo user id the stored API key belongs to.
status:
type: string
description: Connection status (e.g. `active`).
examples:
- active
stage_id:
type:
- integer
- 'null'
description: The configured Odoo CRM stage id for new leads, or null if unset.
team_id:
type:
- integer
- 'null'
description: The configured Odoo sales-team id for new leads, or null if unset.
user_id:
type:
- integer
- 'null'
description: The configured Odoo salesperson user id for new leads, or null if unset.
enrichment_stage_id:
type:
- integer
- 'null'
description: The configured Odoo CRM stage id for leads awaiting enrichment, or null if unset.
lead_type:
type: string
enum:
- lead
- opportunity
description: Whether records are created as leads or opportunities.
examples:
- opportunity
validated_at:
type: string
format: date-time
description: When the connection was last successfully validated (present only on a submit response).
message:
type: string
description: Human-readable outcome of the submit (present only on a submit response).
Error:
type: object
description: The single error shape for the whole surface.
required:
- error
- message
properties:
error:
type: string
description: 'Stable machine-readable code. Common values include: `invalid_token`, `insufficient_credits`, `method_not_allowed`, `rate_limit_exceeded`, `concurrent_limit`, `missing_idempotency_key` (the required `X-Idempotency-Key` header was absent on `execute`), `schema_validation_failed` (request body failed the OpenAPI schema — rejected before any credit debit), `validation_failed` / `icp_not_found` (the discovery criteria were malformed / matched no ideal-customer profile — no job created, any debit refunded), `invalid_query` (an unknown or malformed search/list query param), `invalid_job_id`, `not_owner`, and `response_too_large` (the result exceeded the gateway''s 16 MB response cap and was refused rather than truncated — narrow the request, e.g. a smaller `limit`; the HTTP status may still be 200 when the body had already begun streaming).'
examples:
- missing_idempotency_key
- schema_validation_failed
- validation_failed
- insufficient_credits
- rate_limit_exceeded
message:
type: string
description: Human-readable detail.
request_id:
type:
- string
- 'null'
description: Correlation id — quote this in support tickets.
TenantOdooConnectionRequest:
type: object
additionalProperties: false
description: 'Your own Odoo destination and credentials for self-serve onboarding. `odoo_api_key`
is write-only (accepted here, never returned). `odoo_url` must be a public http(s)
host — private, loopback, link-local, and reserved addresses are rejected.
'
required:
- odoo_url
- odoo_db
- odoo_uid
- odoo_api_key
properties:
odoo_url:
type: string
description: Public https base URL of the tenant's Odoo instance.
examples:
- https://mycompany.odoo.com
odoo_db:
type: string
description: Your Odoo database name — one of the four API authentication parameters (alongside `odoo_url`, `odoo_uid`, `odoo_api_key`). An Odoo server can host multiple databases, so this identifies which one to sync leads into. Leads are written through Odoo's JSON-RPC API — no direct database access is used. If unsure, find it at `https://<your-odoo-host>/web/database/list`.
examples:
- mycompany-main-12345
odoo_uid:
type: integer
minimum: 1
description: The Odoo user id the API key belongs to.
odoo_api_key:
type: string
minLength: 1
writeOnly: true
description: Odoo API key used to authenticate. Write-only — accepted here but never returned on any response.
stage_id:
type: integer
minimum: 1
description: Optional Odoo CRM stage id to place new leads in. Validated to exist before the connection is saved.
team_id:
type: integer
minimum: 1
description: Optional Odoo sales-team id to assign new leads to. Validated to exist before the connection is saved.
user_id:
type: integer
minimum: 1
description: Optional Odoo user id to assign as the salesperson on new leads. Validated to exist before the connection is saved.
enrichment_stage_id:
type: integer
minimum: 1
description: Optional Odoo CRM stage id for leads awaiting further contact enrichment. Validated to exist before the connection is saved.
lead_type:
type: string
enum:
- lead
- opportunity
description: Whether new records are created as CRM leads or opportunities. Defaults to `opportunity` when omitted.
examples:
- opportunity
- lead
TenantConnectionError:
type: object
additionalProperties: false
description: 'Error shape for the CRM-connection onboarding endpoints. Distinct from the API-wide
`Error`: it omits `request_id`, and the body never exposes a resolved IP address or
other internal detail.
'
required:
- error
- message
properties:
error:
type: string
description: 'Stable machine-readable error code. Meanings: `invalid_shape` (malformed body);
`identity_mismatch` (a body `customer_id` disagrees with your token); `reserved_identity`
(this identity can never map to an Odoo); `destination_conflict` (that Odoo destination is
already registered); `onboarding_in_progress` (a registration for you is already running);
`connection_failed` (the live connection test failed); `invalid_fk` (a stage/team/user id
does not exist in your Odoo); `unsafe_url` (`odoo_url` resolves to a non-public address);
`url_validation_timeout` (host validation timed out, fail-closed); `not_found` (no connection
registered); `registry_unavailable` (onboarding not configured on this deployment);
`registry_degraded` (backend temporarily unreachable — retryable).
'
examples:
- invalid_shape
- identity_mismatch
- reserved_identity
- destination_conflict
- onboarding_in_progress
- connection_failed
- invalid_fk
- unsafe_url
- url_validation_timeout
- not_found
- registry_unavailable
- registry_degraded
message:
type: string
description: Human-readable detail for the error.
retryable:
type: boolean
description: 'Present and `true` on a `registry_degraded` 503 — the tenant-registry backend is
temporarily unreachable (bounded off-loop call timed out). Safe to retry with backoff;
the response also carries a `Retry-After` header. Absent on non-retryable errors.
'
TenantOdooConnectionRevoked:
type: object
description: Result of revoking your Odoo connection.
additionalProperties: false
required:
- customer_id
- status
properties:
customer_id:
type: string
description: Your tenant identifier.
status:
type: string
description: '`revoked` when a connection existed and was removed; `not_connected` when nothing was registered (idempotent no-op).'
examples:
- revoked
- not_connected
responses:
RateLimited:
description: Rate limit exceeded (100 requests / 60s per customer).
headers:
Retry-After:
description: Seconds until the window resets.
schema:
type: integer
examples:
- 60
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Unauthorized:
description: Missing/invalid/expired Bearer token.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
securitySchemes:
cognitoClientCredentials:
type: oauth2
description: 'OAuth 2.0 machine-to-machine using the `client_credentials` grant (the
OpenAPI `flows.clientCredentials` object below). This is the ONLY supported grant — do
NOT use the interactive `authorization_code` flow that the identity provider''s discovery
document may advertise; it is for a different (user-facing) client and rejects M2M.
Your `client_id`/`client_secret` are issued per customer (via the Telegram
`/credentials` flow). POST them to the `tokenUrl` below to obtain an access token, then
send it as `Authorization: Bearer <token>` on every request.
'
flows:
clientCredentials:
tokenUrl: https://prosp-mcp-641053169627.auth.eu-central-1.amazoncognito.com/oauth2/token
scopes:
mcp/execute: Start and manage discoveries and read prospects.
x-refined-from:
- openapi.yaml
- prosp-cc-openapi.yaml