> ## Documentation Index
> Fetch the complete documentation index at: https://developers-staging.fmgsuite.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Send consent-request text messages

> Behaves exactly like the in-app "request consent" button: no re-send cooldown is enforced, so throttle on your side if you retry. Requesting consent for a number that has already accepted returns a 400 — check consent status first. Unknown phone numbers create a contact on the advisor's account (existing contacts are never mutated).



## OpenAPI

````yaml /mrc/spec/openapi-merged.yaml post /mrc/messaging/consent-requests
openapi: 3.1.0
info:
  title: MRC Messaging API
  version: 1.0.0
  description: >-
    MyRepChat (MRC) compliant-texting endpoints of the FMG Connect API. Phone
    numbers are the primary identifier throughout; member ids appear only as
    convenience data in responses.
servers:
  - url: https://connect-staging.fmgsuite.com/v1
    description: Current environment
security: []
tags:
  - name: mrc messaging
paths:
  /mrc/messaging/consent-requests:
    post:
      tags:
        - mrc messaging
      summary: Send consent-request text messages
      description: >-
        Behaves exactly like the in-app "request consent" button: no re-send
        cooldown is enforced, so throttle on your side if you retry. Requesting
        consent for a number that has already accepted returns a 400 — check
        consent status first. Unknown phone numbers create a contact on the
        advisor's account (existing contacts are never mutated).
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MrcConsentRequestRequest'
      responses:
        '200':
          description: Per-target consent request results.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MrcConsentRequestResponse'
        '400':
          description: 'invalid request or version mismatch. Retryable: false.'
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '401':
          description: 'unauthorized. Retryable: false.'
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '403':
          description: 'forbidden. Retryable: false.'
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '404':
          description: 'not found. Retryable: false.'
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '409':
          description: 'conflict. Retryable: false.'
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '413':
          description: 'payload too large. Retryable: false.'
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '415':
          description: 'unsupported media type. Retryable: false.'
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '429':
          description: 'rate limited. Retryable: true.'
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '500':
          description: 'internal error. Retryable: true.'
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '502':
          description: 'downstream unavailable. Retryable: true.'
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '504':
          description: 'downstream timeout. Retryable: true.'
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
      security:
        - StytchBearer:
            - mrc.messaging.write
          ApiKey: []
components:
  schemas:
    MrcConsentRequestRequest:
      type: object
      properties:
        phoneNumbers:
          type: array
          items:
            type: string
            minLength: 1
          minItems: 1
      required:
        - phoneNumbers
    MrcConsentRequestResponse:
      type: object
      properties:
        successes:
          type: array
          items:
            $ref: '#/components/schemas/MrcConsentRequestResult'
        failures:
          type: array
          items:
            type: string
      required:
        - successes
        - failures
    Problem:
      type: object
      properties:
        type:
          type: string
          format: uri
        title:
          type: string
        status:
          type: integer
        detail:
          type: string
        instance:
          type: string
        code:
          type: string
          enum:
            - invalid_request
            - unauthorized
            - forbidden
            - not_found
            - conflict
            - version_mismatch
            - rate_limited
            - payload_too_large
            - unsupported_media_type
            - downstream_timeout
            - downstream_unavailable
            - internal_error
          description: >-
            invalid_request: HTTP 400, retryable=false; unauthorized: HTTP 401,
            retryable=false; forbidden: HTTP 403, retryable=false; not_found:
            HTTP 404, retryable=false; conflict: HTTP 409, retryable=false;
            version_mismatch: HTTP 400, retryable=false; rate_limited: HTTP 429,
            retryable=true; payload_too_large: HTTP 413, retryable=false;
            unsupported_media_type: HTTP 415, retryable=false;
            downstream_timeout: HTTP 504, retryable=true;
            downstream_unavailable: HTTP 502, retryable=true; internal_error:
            HTTP 500, retryable=true
        traceId:
          type: string
        retryable:
          type: boolean
        details: {}
      required:
        - type
        - title
        - status
        - detail
        - instance
        - code
        - traceId
        - retryable
    MrcConsentRequestResult:
      type: object
      properties:
        memberId:
          type:
            - integer
            - 'null'
        consentState:
          type:
            - string
            - 'null'
      required:
        - memberId
        - consentState
  securitySchemes:
    StytchBearer:
      type: oauth2
      description: OAuth 2.1 access tokens issued by Stytch Connected Apps.
      flows:
        authorizationCode:
          authorizationUrl: https://api.stytch.com/v1/public/oauth2/authorize
          tokenUrl: https://api.stytch.com/v1/public/oauth2/token
          scopes:
            fmg.contacts.read: Read FMG Suite contacts and contact groups.
            fmg.contacts.write: Create, update, and delete FMG Suite contacts and groups.
            fmg.content.read: Read FMG content library items.
            mrc.messaging.read: >-
              Read MyRepChat messaging status: consent status now, message
              status later (MRC-5613).
            mrc.messaging.write: Send and schedule MyRepChat text messages.
        clientCredentials:
          tokenUrl: https://api.stytch.com/v1/public/oauth2/token
          scopes:
            fmg.contacts.read: Read FMG Suite contacts and contact groups.
            fmg.contacts.write: Create, update, and delete FMG Suite contacts and groups.
            fmg.content.read: Read FMG content library items.
            mrc.messaging.read: >-
              Read MyRepChat messaging status: consent status now, message
              status later (MRC-5613).
            mrc.messaging.write: Send and schedule MyRepChat text messages.
    ApiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        API usage-plan key. Required on every request, sent as the `x-api-key`
        header.

````