> ## 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.

# Put v1outreach consents



## OpenAPI

````yaml /api/openapi.json put /v1/outreach-consents
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-09-09'
servers:
  - url: https://api.erdo.ai
    description: Production
security:
  - bearerAuth: []
paths:
  /v1/outreach-consents:
    put:
      operationId: PUT:mcp.PutOutreachConsentAPI
      requestBody:
        content:
          application/json:
            schema:
              properties:
                basis:
                  type: string
                default_country:
                  type: string
                evidence_text:
                  type: string
                evidence_version:
                  type: string
                grant_ref:
                  type: string
                granted_at:
                  format: date-time
                  type: string
                phone_raw:
                  type: string
                recipient_ref:
                  type: string
                revoked:
                  type: boolean
                source_ref:
                  type: string
              type: object
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  consent:
                    $ref: '#/components/schemas/messaging.OutreachConsentGrantView'
                type: object
          description: Success response
        default:
          $ref: '#/components/responses/APIError'
components:
  schemas:
    messaging.OutreachConsentGrantView:
      properties:
        address:
          type: string
        basis:
          type: string
        created_at:
          format: date-time
          type: string
        evidence_text:
          type: string
        evidence_version:
          type: string
        grant_ref:
          type: string
        granted_at:
          format: date-time
          type: string
        recipient_ref:
          type: string
        revoked_at:
          format: date-time
          type: string
        source_ref:
          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_...).

````