Prosp Message Intelligence API

Grounded outreach-message generation (`/api/v1/message-intelligence`): register a generation, poll its status until it is terminal, cancel it while it is still queued or composing.

GitHub OpenAPI

Operations 6

POST /api/v1/message-intelligence Register a grounded outreach-message generation #
GET /api/v1/message-intelligence/{id} Status (and, once succeeded, result) of a generation #
DELETE /api/v1/message-intelligence/{id} Cancel a generation #
GET /api/v1/seller-profile The caller's seller profile #
PUT /api/v1/seller-profile Create or replace the caller's seller profile #
DELETE /api/v1/seller-profile Delete the caller's seller profile #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/prosp-cc:prosp-cc-message-intelligence-api"
All apis
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.

Get an API 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 Specification

prosp-cc-message-intelligence-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Prosp Cc Message Intelligence API
  version: 0.4.0
  contact:
    name: Prosp API support
    url: https://prosp.cc/
  license:
    name: Proprietary
    url: https://prosp.cc/
  description: 'Operations tagged message-intelligence 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: message-intelligence
  description: 'Grounded outreach-message generation (`/api/v1/message-intelligence`): register a generation, poll its status until it is terminal, cancel it while it is still queued or composing.'
paths:
  /api/v1/message-intelligence:
    post:
      tags:
      - message-intelligence
      operationId: createMessageGeneration
      summary: Register a grounded outreach-message generation
      description: 'Registers one message generation and returns immediately with `202 Accepted`. Poll the

        status resource named in `Location` (or honour `Retry-After`) until `status` is terminal;

        the finished message is embedded in that resource. The API composes text; it does **not**

        send it, and it does not replace the recipient''s WhatsApp opt-in. ## What the message may say

        Every candidate fact about the recipient and the sender carries a tier. The message

        **asserts only facts of tier `verified`**. `reported` and `estimated` facts may influence

        which angle is chosen but are never stated as fact; `unknown` facts are never mentioned. The tier of each field is derived from the provenance the record already carries

        (field by field, from its source and verification evidence), not chosen by the model. Personal data - contacts, officers, phone numbers, e-mail addresses, social handles, and,

        for a sole trader, the person''s own name and address - is **never** asserted. After

        generation, code re-checks that each claim in the text maps to `fact_ids` of `verified`

        facts; an unsupported claim is removed, or the request fails - it is never shipped. ## Language

        The message is written in the language of the **recipient company''s website main page**. There is no caller override. The decision is reported on the result as `language`

        (ISO 639-1) and `language_source`. If the homepage language cannot be determined the

        request fails with error code `language_undetermined` and the credits are returned;

        the language is never guessed. ## Unknown companies

        If the recipient or sender company is not yet known, the status passes through

        `enriching`, which runs the existing discovery/validation pipeline for that single

        domain, then `composing`. The wait for an unknown **sender** is bounded. If the sender is

        still unknown to the knowledge base afterwards, and the caller''s seller profile (used only when

        its website is that same sender domain) holds no offering or description for it, nothing true

        can be written about the sender''s offer: the generation ends `failed` with `error.error` =

        `sender_unknown` **before any model call**, and its credits are returned. Another company''s

        seller profile is never used as the sender''s facts. ## Cost and balance

        There is exactly **one debit, at `POST`**, for the whole generation including any

        enrichment. Enrichment never debits again and never changes the balance mid-job; a

        generation that ends `failed` for any reason below, or `canceled` before composition

        starts, returns that one debit. `402 insufficient_credits` is therefore only ever

        returned by `POST`. ## Jurisdiction

        Checked at `POST` against what is already known: `422 jurisdiction_excluded`. A company

        whose jurisdiction only becomes known **after** enrichment is excluded late: the

        generation ends `failed` with `error.error` = `jurisdiction_excluded` and the credits are

        returned. The text is never composed for an excluded jurisdiction. ## Validation done before `202`

        Invalid body or hostname: `400 invalid_request`. `sender.company_domain` is the sender''s own

        company domain: the service reads the sender''s facts from the knowledge base by it and does not

        verify that the caller controls it. When `sender` or `sender.company_domain` is omitted, the caller''s

        seller profile website is the sender; with no profile website either, the request is `400 invalid_request`

        (`sender.company_domain is required when no seller profile website is set`). Recipient or sender in a policy-excluded

        jurisdiction: `422 jurisdiction_excluded`. Insufficient credits: `402

        insufficient_credits`. `constraints.max_characters` that no message can meet: `422

        max_characters_unmeetable`; when this only shows during composition the generation ends

        `failed` with the same code and the credits are returned.'
      parameters:
      - $ref: '#/components/parameters/IdempotencyKeyHeader'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MessageGenerationRequest'
      responses:
        '200':
          description: 'Idempotent replay: the same `Idempotency-Key` with the same payload. The existing resource in its current state; no second generation, no second debit.'
          headers:
            Location:
              description: The status resource, `/api/v1/message-intelligence/{id}`.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MessageGeneration'
        '202':
          description: Accepted. Poll the resource in `Location`.
          headers:
            Location:
              description: The status resource, `/api/v1/message-intelligence/{id}`.
              schema:
                type: string
            Retry-After:
              description: Seconds to wait before the first poll.
              schema:
                type: integer
                examples:
                - 5
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MessageGenerationAccepted'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '409':
          $ref: '#/components/responses/Conflict'
        '422':
          $ref: '#/components/responses/Unprocessable'
        '429':
          $ref: '#/components/responses/RateLimited'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
    servers:
    - url: https://api.prosp.cc
      description: Production
  /api/v1/message-intelligence/{id}:
    parameters:
    - name: id
      in: path
      required: true
      description: The generation id returned by `POST /api/v1/message-intelligence`.
      schema:
        type: string
        pattern: ^[a-zA-Z0-9-]+$
    get:
      tags:
      - message-intelligence
      operationId: getMessageGeneration
      summary: Status (and, once succeeded, result) of a generation
      description: 'Always `200` for a known id owned by the caller; a non-terminal state is a status, not an

        error. An unknown id, or one owned by another tenant, is `404`. While `status` is

        non-terminal the response carries `Retry-After`. When `succeeded`, `result` is embedded

        in this response (there is no redirect to a second resource). When `failed`, `error` is

        the surface''s `Error` shape with a snake_case code. When `canceled`, `canceled_reason`

        says why. The resource is retained for **7 days after it reaches a terminal state**;

        `expires_at` says when, and the response carries a matching `Expires` header. After that

        the id is **`410 Gone`** (`generation_expired`), distinct from `404` for an id that never

        existed or is not yours.'
      responses:
        '200':
          description: The generation's current state.
          headers:
            Retry-After:
              description: Seconds until the next poll is useful. Present only while non-terminal.
              schema:
                type: integer
                examples:
                - 5
            Expires:
              description: HTTP-date at which the resource is no longer retained (`expires_at`).
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MessageGeneration'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '410':
          $ref: '#/components/responses/Gone'
        '429':
          $ref: '#/components/responses/RateLimited'
    delete:
      tags:
      - message-intelligence
      operationId: cancelMessageGeneration
      summary: Cancel a generation
      description: 'Moves a `queued`, `enriching` or `composing`

        generation to the terminal state `canceled` with `canceled_reason` = `caller_request`.

        **Refund rule:** the debit is returned if composition has not started (`status` is

        `queued` or `enriching`); once `composing` has started the cancel is accepted but the

        credits are not returned. Canceling an already `canceled` generation is idempotent and

        returns it unchanged. Canceling a `succeeded` or `failed` generation is

        **`409 not_cancelable`**. An expired id is `410 generation_expired`.'
      responses:
        '200':
          description: The generation after the cancel request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MessageGeneration'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
        '410':
          $ref: '#/components/responses/Gone'
        '429':
          $ref: '#/components/responses/RateLimited'
    servers:
    - url: https://api.prosp.cc
      description: Production
  /api/v1/seller-profile:
    get:
      tags:
      - message-intelligence
      operationId: getSellerProfile
      summary: The caller's seller profile
      description: 'The one seller profile the caller keeps: the business description and website used to ground

        outreach messages. **No credit cost.** `derivation_status` says whether an offering was derived

        from the website (`derived`), is still being derived (`pending`), could not be derived after the bounded

        retries (`unavailable`, terminal until the profile''s website is changed; editing only the description does not retry), or there is no website (`none`).

        `404 not_found` when no profile is set.'
      responses:
        '200':
          description: The caller's seller profile.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SellerProfile'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
    put:
      tags:
      - message-intelligence
      operationId: putSellerProfile
      summary: Create or replace the caller's seller profile
      description: 'Replaces the whole profile with the body. **No credit cost.** Send at least one of

        `description` or `website`. A `description` longer than 1500 characters is truncated to

        1500 characters, the same cap the `/profile` bot command applies, so both surfaces store the

        same record. A `website` is a URL or a bare domain; the site is crawled into the shared

        knowledge base in the background, and `derived_offering` fills in later

        (`derivation_status` is `pending` until then). The offering is kept while the website is

        unchanged and cleared when the website changes.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SellerProfileInput'
      responses:
        '200':
          description: The stored profile.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SellerProfile'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/RateLimited'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
    delete:
      tags:
      - message-intelligence
      operationId: deleteSellerProfile
      summary: Delete the caller's seller profile
      description: 'Removes the profile. Idempotent: deleting when no profile is set also returns `204`.

        **No credit cost.**'
      responses:
        '204':
          description: The profile is deleted (or was already absent). The body is empty.
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/RateLimited'
    servers:
    - url: https://api.prosp.cc
      description: Production
components:
  responses:
    Unprocessable:
      description: 'The request is well-formed but cannot be honoured: `idempotency_key_reused`, `jurisdiction_excluded`, `unsafe_url` or `max_characters_unmeetable`.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Resource not found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    PaymentRequired:
      description: Insufficient credits (`insufficient_credits`); nothing was debited.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    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'
    Conflict:
      description: 'The request conflicts with the resource''s state: `request_in_flight` (the same `Idempotency-Key` is still being processed) or `not_cancelable` (the generation is already `succeeded` or `failed`).'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Gone:
      description: The resource existed and its retention window has passed (`generation_expired`). Distinct from `404`, which is an id that never existed or belongs to another tenant.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Missing/invalid/expired Bearer token.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    ServiceUnavailable:
      description: Temporarily unable to accept work (`service_unavailable`); nothing was debited.
      headers:
        Retry-After:
          description: Seconds to wait before retrying.
          schema:
            type: integer
            examples:
            - 30
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    BadRequest:
      description: Malformed request (missing/invalid field or header).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    MessageGenerationResult:
      type: object
      required:
      - message
      - angle
      - facts_used
      - sender_recipient_relevance
      - confidence
      - language
      - language_source
      - warnings
      description: '`message` is the composed text. Every claim in it maps to `fact_ids` in `facts_used`, all of tier `verified`.'
      properties:
        message:
          type: string
        subject:
          type:
          - string
          - 'null'
          maxLength: 80
          description: The email subject line, for channel email only; null for other channels. Written in the message's language, under the same grounding rules as the message. Capped at 80 characters; `constraints.max_characters` bounds the message only and does not apply to the subject.
        angle:
          type: string
          description: The chosen approach; may be shaped by reported or estimated facts, which are never stated.
        facts_used:
          type: array
          description: The verified facts the text asserts.
          items:
            $ref: '#/components/schemas/MessageFact'
        sender_recipient_relevance:
          type: string
          description: Why the sender is relevant to this recipient.
        confidence:
          type: number
          minimum: 0
          maximum: 1
        language:
          type: string
          pattern: ^[a-z]{2}$
          description: ISO 639-1 code of the language the text is written in - that of the recipient homepage.
        language_source:
          type: string
          enum:
          - html_lang_attribute
          - content_language_header
          - text_detection
          description: How `language` was decided.
        warnings:
          type: array
          items:
            type: string
        facts_missing:
          type:
          - array
          - 'null'
          description: 'The gaps the text was composed without: what the knowledge base still lacked after the bounded wait for the gatherers. Empty when nothing was missing. `null` when the knowledge base gave no coverage to judge by.'
          items:
            type: string
            enum:
            - offering
            - location
            - size
            - registry
            - events_town
            - trade_fair
            - sender_offering
    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.
    MessageGenerationStatus:
      type: string
      enum:
      - queued
      - enriching
      - composing
      - succeeded
      - failed
      - canceled
      description: '`queued`, `enriching` (single-domain discovery/validation for an unknown company) and `composing` are non-terminal; `succeeded`, `failed` and `canceled` are terminal.'
    SellerProfileInput:
      type: object
      additionalProperties: false
      description: The profile to store. Both fields are optional, but at least one must be non-blank. A description longer than 1500 characters is truncated, not refused.
      properties:
        description:
          type: string
          description: The business description (truncated to 1500 characters).
        website:
          type: string
          maxLength: 2048
          description: The seller's website, a URL or a bare domain. Blank clears it.
    MessageGeneration:
      type: object
      required:
      - id
      - status
      - created_at
      - last_updated_at
      - expires_at
      properties:
        id:
          type: string
        status:
          $ref: '#/components/schemas/MessageGenerationStatus'
        stage_detail:
          type:
          - string
          - 'null'
          description: Human-readable detail on the current stage, e.g. which domain is being enriched.
        created_at:
          type: string
          format: date-time
        last_updated_at:
          type: string
          format: date-time
        expires_at:
          type: string
          format: date-time
        result:
          description: Present only when `status` is `succeeded`.
          oneOf:
          - $ref: '#/components/schemas/MessageGenerationResult'
          - type: 'null'
        canceled_reason:
          description: Present only when `status` is `canceled`.
          oneOf:
          - type: string
            enum:
            - caller_request
          - type: 'null'
        error:
          description: Present only when `status` is `failed`. `error.error` is one of the values of `MessageFailureCode`. The debit is returned in every case.
          oneOf:
          - $ref: '#/components/schemas/Error'
          - type: 'null'
    MessageFact:
      type: object
      required:
      - fact_id
      - field
      - text
      - tier
      - source_url
      - as_of
      properties:
        fact_id:
          type: string
        field:
          type: string
          description: 'The prospect field this claim is about. One of the customer-safe prospect fields, so every claim joins to the verification tier of exactly that field. The last five values are knowledge-only fact kinds that are not prospect fields: `town_events` (events in the company''s town), `trade_fair` (a trade fair for the company''s industry), `offering` (a product or service on its own site), `page` (a summary of one of its crawled pages), `kb_fact` (a fact from the knowledge base, cited to a source) and `industry_news` (a recent item about its industry, a context fact).'
          enum:
          - domain
          - description
          - industry
          - employee_count
          - company_size
          - employee_count_source
          - employee_count_as_of
          - size_certainty
          - country
          - country_code
          - city
          - state
          - street_romanized
          - city_romanized
          - state_romanized
          - weibo_url
          - douyin_url
          - business_model
          - estimated_revenue
          - estimated_revenue_currency
          - founded_year
          - reported_revenue_usd_cents
          - funding_total_usd_cents
          - funding_latest_round
          - web_traffic
          - logo_url
          - source_published_date
          - source_last_updated
          - nace_code
          - legal_form
          - registration_date
          - beian_number
          - footer_legal_name_source
          - social_source
          - discovered_at
          - detected_language
          - company_status
          - has_wikipedia_article
          - domain_age_days
          - detected_industry
          - branch_regions
          - sub_country_region
          - origin_country
          - certifications
          - customer_count
          - customer_count_source
          - export_markets
          - production_capacity
          - served_industries
          - branch_footprint
          - events
          - facts
          - knowledge_graph
          - knowledge_graph_grouped
          - pages
          - semantic_score
          - site_point_lat
          - site_point_lon
          - site_refcat
          - site_building_use
          - site_floor_area_m2
          - hazard_flood_fluvial_t10_m
          - hazard_flood_fluvial_t100_m
          - hazard_flood_fluvial_t500_m
          - hazard_flood_marine_t100_m
          - hazard_flood_marine_t500_m
          - hazard_dana2024_flooded
          - site_motorway_access_road_m
          - site_motorway_access_class
          - site_point_lat_source
          - site_point_lon_source
          - site_refcat_source
          - site_building_use_source
          - site_floor_area_m2_source
          - hazard_flood_fluvial_t10_m_source
          - hazard_flood_fluvial_t100_m_source
          - hazard_flood_fluvial_t500_m_source
          - hazard_flood_marine_t100_m_source
          - hazard_flood_marine_t500_m_source
          - hazard_dana2024_flooded_source
          - site_motorway_access_road_m_source
          - site_motorway_access_class_source
          - site_floor_area_m2_method
          - site_motorway_access_road_m_method
          - town_events
          - trade_fair
          - offering
          - page
          - kb_fact
          - industry_news
        text:
          type: string
        tier:
          type: string
          enum:
          - verified
          - reported
          description: The verification tier of the fact. `facts_used` lists only facts of tier `verified` or `reported`; `estimated`, `context` and `unknown` facts are never listed there.
        source_url:
          type:
          - string
          - 'null'
          format: uri
        as_of:
          type: string
          format: date
    SellerProfile:
      type: object
      description: The caller's seller profile. Only these fields are returned.
      required:
      - description
      - website
      - derived_offering
      - updated_at
      - derivation_status
      properties:
        description:
          type: string
          description: The business description the seller typed (at most 1500 characters).
        website:
          type: string
          description: The seller's website as typed (URL or bare domain). Empty when none is set.
        derived_offering:
          type: string
          description: What the seller offers, derived from the website. Empty until derived.
        updated_at:
          type: string
          format: date-time
          description: When the profile was last written.
        derivation_status:
          type: string
          enum:
          - derived
          - pending
          - unavailable
          - none
          description: '`derived` once an offering exists; `pending` while a website is set and the offering is still being derived; `unavailable` once the bounded derivation attempts found nothing usable on the site (terminal until the website is changed; editing only the description does not retry); `none` when there is no website.'
    MessageGenerationRequest:
      type: object
      additionalProperties: false
      required:
      - recipient
      - channel
      - objective
      description: 'What to write, to whom, from whom. There is NO language field: the message language is the language of the recipient company''s website main page, reported on the result. If sender is omitted, the caller''s seller profile website is the sender; the profile''s offering and description are used as sender facts. If sender.company_domain differs from the profile website, the profile is not used.'
      properties:
        recipient:
          type: object
          additionalProperties: false
          required:
          - name
          - company_domain
          properties:
            name:
              type: string
              maxLength: 200
              description: The person's name, as the caller knows it.
            role:
              type: string
              maxLength: 200
              description: The person's role at the company.
            company_domain:
              type: string
              pattern: ^(?=.{1,253}$)([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?\.)+([a-z]{2,63}|xn--[a-z0-9-]{1,59})$
              description: Lowercase hostname (internationalised names in punycode); no scheme, path or port.
              examples:
              - acme.de
        sender:
          type: object
          additionalProperties: false
          description: The sender's own company domain. The service reads the sender's facts from the knowledge base by it; ownership is not verified. If sender is omitted, the caller's seller profile website is the sender; the profile's offering and description are used as sender facts. If sender.company_domain differs from the profile website, the profile is not used.
          properties:
            company_domain:
              type: string
              pattern: ^(?=.{1,253}$)([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?\.)+([a-z]{2,63}|xn--[a-z0-9-]{1,59})$
              description: Lowercase hostname (internationalised names in punycode); no scheme, path or port.
              examples:
              - example.com
        channel:
          type: string
          enum:
          - email
          - whatsapp
          - telegram
        objective:
          type: string
          maxLength: 1000
          description: What the message should achieve, in the caller's words.
        constraints:
          type: object
          additionalProperties: false
          properties:
            max_characters:
              type: integer
              minimum: 1
              description: Bounds the message text only. The email subject has its own fixed cap of 80 characters and is not counted against this limit.
            tone:
              type: string
              maxLength: 64
        callback_url:
          type: string
          format: uri
          maxLength: 2048
          pattern: ^https://
          description: 'RESERVED. Accepted and stored, but no callback is delivered yet; poll the status resource. Must be an `https` URL on a public host: private, loopback, link-local, reserved, multicast and cloud-metadata addresses are rejected with `422 unsafe_url` (same rule as `odoo_url` on the tenant Odoo endpoint).'
    MessageGenerationAccepted:
      type: object
      required:
      - id
      - status
      - created_at
      properties:
        id:
          type: string
        status:
          $ref: '#/components/schemas/MessageGenerationStatus'
        created_at:
          type: string
          format: date-time
  parameters:
    IdempotencyKeyHeader:
      name: Idempotency-Key
      in: header
      required: true
      description: Client-generated unique key (draft-ietf-httpapi-idempotency-key-header-07), remembered for 24 hours. Distinct from the legacy `X-Idempotency-Key` used by `execute`.
      schema:
        type: string
        minLength: 1
        maxLength: 255
  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