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

# Get consent status

> Poll this after requesting consent. Recommended cadence: every 30 seconds for the first 5 minutes after a consent request, then every 5 minutes, and stop after 24 hours (contacts who haven't replied by then rarely do — send a new consent request instead). Lookup by phone number is the primary partner flow; memberId is accepted as a convenience.



## OpenAPI

````yaml /mrc/spec/openapi-merged.yaml get /mrc/messaging/consents
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/consents:
    get:
      tags:
        - mrc messaging
      summary: Get consent status
      description: >-
        Poll this after requesting consent. Recommended cadence: every 30
        seconds for the first 5 minutes after a consent request, then every 5
        minutes, and stop after 24 hours (contacts who haven't replied by then
        rarely do — send a new consent request instead). Lookup by phone number
        is the primary partner flow; memberId is accepted as a convenience.
      parameters:
        - schema:
            type: string
            minLength: 1
          required: false
          name: phone
          in: query
        - schema:
            type: integer
            exclusiveMinimum: 0
          required: false
          name: memberId
          in: query
      responses:
        '200':
          description: Consent status.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MrcConsentStatusResponse'
        '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'
        '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.read
          ApiKey: []
components:
  schemas:
    MrcConsentStatusResponse:
      type: object
      properties:
        memberId:
          type:
            - integer
            - 'null'
        state:
          type: string
          enum:
            - none
            - pending
            - accepted
        lastChanged:
          type:
            - integer
            - 'null'
      required:
        - memberId
        - state
        - lastChanged
    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
  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.

````