> ## Documentation Index
> Fetch the complete documentation index at: https://docs.erdo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# MarkLeadsTestAPI changes the test-traffic stamp on one or more canonical leads.


> The dataset service resolves each id in the active organization and records the admin actor.




## OpenAPI

````yaml /api/openapi.json post /v1/leads/test
openapi: 3.0.0
info:
  title: Erdo API
  description: >-
    Erdo's REST API: query and write datasets, run agents, manage threads,
    integrations, pages, evals, workstreams, experiments, and bounded outreach.
    Authenticate with a Bearer API key (erdo_api_...) or scoped token
    (erdo_token_...).
  version: '2026-11-21'
servers:
  - url: https://api.erdo.ai
    description: Production
security:
  - bearerAuth: []
paths:
  /v1/leads/test:
    post:
      summary: >
        MarkLeadsTestAPI changes the test-traffic stamp on one or more canonical
        leads.
      description: >
        The dataset service resolves each id in the active organization and
        records the admin actor.
      operationId: POST:mcp.MarkLeadsTestAPI
      requestBody:
        content:
          application/json:
            schema:
              properties:
                canonical_lead_ids:
                  items:
                    type: string
                  type: array
                is_test:
                  type: boolean
              type: object
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  failures:
                    items:
                      $ref: >-
                        #/components/schemas/dataset.CanonicalLeadTestMarkFailure
                    type: array
                  is_test:
                    type: boolean
                  leads:
                    items:
                      $ref: '#/components/schemas/dataset.CanonicalLeadTestMark'
                    type: array
                  unknown_canonical_lead_ids:
                    items:
                      type: string
                    type: array
                type: object
          description: Success response
        default:
          $ref: '#/components/responses/APIError'
components:
  schemas:
    dataset.CanonicalLeadTestMarkFailure:
      properties:
        error:
          type: string
        requested_canonical_lead_id:
          type: string
      type: object
    dataset.CanonicalLeadTestMark:
      properties:
        canonical_lead_id:
          type: string
        is_test:
          type: boolean
        requested_canonical_lead_id:
          type: string
      type: object
  responses:
    APIError:
      content:
        application/json:
          schema:
            externalDocs:
              url: https://pkg.go.dev/encore.dev/beta/errs#Error
            properties:
              code:
                description: Error code
                example: not_found
                externalDocs:
                  url: https://pkg.go.dev/encore.dev/beta/errs#ErrCode
                type: string
              details:
                description: Error details
                type: object
              message:
                description: Error message
                type: string
            title: APIError
            type: object
      description: Error response
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: An Erdo API key (erdo_api_...) or scoped token (erdo_token_...).

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.