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

# Get SMS log by ID

> Fetch a single SMS log by ID for the team, with messageContent decrypted.



## OpenAPI

````yaml https://api-qa.interactly.ai/api-docs/sms/api.json get /sms/v1/sms/logs/{sms_log_id}
openapi: 3.1.0
info:
  title: Interactly API
  description: API for building interactly.ai services
  version: 1.1.0
  contact:
    name: Interactly
    url: https://interactly.ai
    email: developers@interactly.ai
servers:
  - url: https://api-qa.interactly.ai
    description: API Server
security: []
paths:
  /sms/v1/sms/logs/{sms_log_id}:
    get:
      tags:
        - SMS Libraries and APIs
      summary: Get SMS log by ID
      description: >-
        Fetch a single SMS log by ID for the team, with messageContent
        decrypted.
      operationId: sms_listener_service_get_sms_log_v1_sms_logs__sms_log_id__get
      parameters:
        - name: sms_log_id
          in: path
          required: true
          schema:
            type: string
            title: Sms Log Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SMSLogs'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - bearer: []
components:
  schemas:
    SMSLogs:
      properties:
        teamId:
          anyOf:
            - type: string
              example: 5eb7cf5a86d9755df3a6c593
            - type: 'null'
          title: Teamid
          description: ID of the team that owns this record
        createdBy:
          anyOf:
            - type: string
              example: 5eb7cf5a86d9755df3a6c593
            - type: 'null'
          title: Createdby
          description: ID of the user who created this record
        updatedBy:
          anyOf:
            - type: string
              example: 5eb7cf5a86d9755df3a6c593
            - type: 'null'
          title: Updatedby
          description: ID of the user who last updated this record
        createdAt:
          type: string
          format: date-time
          title: Createdat
        updatedAt:
          type: string
          format: date-time
          title: Updatedat
        _id:
          anyOf:
            - type: string
              example: 5eb7cf5a86d9755df3a6c593
            - type: 'null'
          title: Id
          description: MongoDB document ObjectID
        phoneProvider:
          $ref: '#/components/schemas/PhoneProvider'
          description: SMS provider (twilio/vonage)
        phoneNumberId:
          anyOf:
            - type: string
              example: 5eb7cf5a86d9755df3a6c593
            - type: 'null'
          title: Phonenumberid
          description: Phone number config ID
        assistantNumber:
          anyOf:
            - type: string
            - type: 'null'
          title: Assistantnumber
          description: Assistant's phone number
        userNumber:
          anyOf:
            - type: string
            - type: 'null'
          title: Usernumber
          description: User's phone number
        direction:
          anyOf:
            - $ref: '#/components/schemas/SMSDirection'
            - type: 'null'
          description: inbound or outbound
        messageContent:
          anyOf:
            - type: string
            - type: 'null'
          title: Messagecontent
          description: Encrypted message text
        status:
          anyOf:
            - $ref: '#/components/schemas/EventStatus'
            - type: 'null'
          description: Delivery status
        errorCode:
          anyOf:
            - $ref: '#/components/schemas/SMSErrorCode'
            - type: 'null'
          description: Structured error code if failed
        errorMessage:
          anyOf:
            - type: string
            - type: 'null'
          title: Errormessage
          description: Human-readable error message
        response:
          anyOf:
            - $ref: '#/components/schemas/SMSResponse'
            - type: 'null'
          description: Raw provider response
        meta:
          $ref: '#/components/schemas/SMSMeta'
          description: Associated IDs metadata
        cost:
          $ref: '#/components/schemas/SMSCost'
          description: Cost breakdown
        notes:
          anyOf:
            - type: string
            - type: 'null'
          title: Notes
          description: Additional notes or context
      type: object
      required:
        - phoneProvider
      title: SMSLogs
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    PhoneProvider:
      type: string
      enum:
        - twilio
        - telnyx
        - vonage
      title: PhoneProvider
    SMSDirection:
      type: string
      enum:
        - inbound
        - outbound
      title: SMSDirection
    EventStatus:
      type: string
      enum:
        - pending
        - received
        - delivered
        - failed
      title: EventStatus
    SMSErrorCode:
      type: string
      enum:
        - validation_error
        - phone_number_not_found
        - credentials_error
        - credentials_not_found
        - send_failed
        - rate_limit_error
        - upstream_error
        - encryption_error
        - server_error
        - phone_provider_not_supported
      title: SMSErrorCode
    SMSResponse:
      properties:
        success:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Success
          description: Whether the operation succeeded
        statusCode:
          anyOf:
            - type: integer
            - type: 'null'
          title: Statuscode
          description: HTTP or provider status code
        body:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Body
          description: Raw response body from provider
      type: object
      title: SMSResponse
    SMSMeta:
      properties:
        assistantId:
          anyOf:
            - type: string
              example: 5eb7cf5a86d9755df3a6c593
            - type: string
            - type: 'null'
          title: Assistantid
          description: Assistant ID
        conversationId:
          anyOf:
            - type: string
            - type: 'null'
          title: Conversationid
          description: Conversation ID
        workflowId:
          anyOf:
            - type: string
              example: 5eb7cf5a86d9755df3a6c593
            - type: 'null'
          title: Workflowid
          description: Workflow ID
        campaignId:
          anyOf:
            - type: string
              example: 5eb7cf5a86d9755df3a6c593
            - type: 'null'
          title: Campaignid
          description: Campaign ID
      type: object
      title: SMSMeta
    SMSCost:
      properties:
        totalAmount:
          type: number
          title: Totalamount
          description: Total cost amount
          default: 0
      type: object
      title: SMSCost
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: Bearer
      type: http
      description: >-
        Retrieve your API Key from [Dashboard API Keys
        Section](https://dashboard-qa.interactly.ai/api-keys).

````