---
updatedAt: 2026-09-24T13:52:52.000Z
---

# Send Outbound Message

Queue an outbound message. RCS Agent must exist. RCS Agent must not be suspended. User must have permission to send messages for RCS Agent.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Messaging API",
    "description": "Provides provisioning endpoints for First Orion services",
    "version": "v0.64.1"
  },
  "servers": [
    {
      "url": "https://api.firstorion.com",
      "description": "Production"
    }
  ],
  "paths": {
    "/fobm/messaging/outbound/{agent-id}": {
      "post": {
        "tags": [
          "Messaging"
        ],
        "summary": "Send Outbound Message",
        "description": "Queue an outbound message. RCS Agent must exist. RCS Agent must not be suspended. User must have permission to send messages for RCS Agent.",
        "operationId": "outbound",
        "parameters": [
          {
            "name": "agent-id",
            "in": "path",
            "description": "Unique identifier for the agent",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "abc123xzy456"
          }
        ],
        "requestBody": {
          "description": "Outbound message request payload",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OutboundMessageRequest"
              },
              "examples": {
                "RCS Text Message Payload": {
                  "description": "RCS Text Message Payload",
                  "value": {
                    "number": "+14155552671",
                    "messageType": "TEXT",
                    "messageContent": {
                      "text": "Hello world"
                    }
                  }
                },
                "RCS Choice Message Payload - this is just a stub for future phases": {
                  "description": "RCS Choice Message Payload - this is just a stub for future phases",
                  "value": {
                    "number": "+14155552671",
                    "messageType": "CHOICE",
                    "messageContent": {
                      "choices": [
                        "Yes",
                        "No"
                      ]
                    }
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Message successfully queued for sending",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ChoiceContent": {
        "allOf": [
          {
            "$ref": "#/components/schemas/RcsMessageContent"
          },
          {
            "type": "object",
            "properties": {
              "choices": {
                "type": "array",
                "description": "Choices for user selection",
                "example": [
                  "Yes",
                  "No"
                ],
                "items": {
                  "type": "string"
                },
                "maxItems": 10,
                "minItems": 1
              }
            }
          }
        ],
        "description": "Choice message content (not implemented yet, this is just a placeholder to demonstrate different message types)",
        "required": [
          "choices"
        ]
      },
      "NullContent": {
        "allOf": [
          {
            "$ref": "#/components/schemas/RcsMessageContent"
          },
          {
            "$ref": "#/components/schemas/InboundSenderStatusWebhookRequest"
          }
        ]
      },
      "OutboundMessageRequest": {
        "type": "object",
        "properties": {
          "number": {
            "type": "string",
            "description": "Recipient phone number in E.164 format",
            "example": "+14155552671",
            "minLength": 1,
            "pattern": "^\\+1[2-9][0-9]{2}[2-9][0-9]{6}$"
          },
          "messageType": {
            "type": "string",
            "description": "Message type. Currently only TEXT is supported",
            "enum": [
              "TEXT",
              "MEDIA",
              "CARD",
              "CAROUSEL",
              "CHOICE"
            ],
            "example": "TEXT"
          },
          "messageContent": {
            "description": "Message content matching the messageType",
            "oneOf": [
              {
                "$ref": "#/components/schemas/ChoiceContent"
              },
              {
                "$ref": "#/components/schemas/NullContent"
              },
              {
                "$ref": "#/components/schemas/TextContent"
              }
            ]
          }
        },
        "required": [
          "messageContent",
          "messageType",
          "number"
        ]
      },
      "RcsMessageContent": {},
      "TextContent": {
        "allOf": [
          {
            "$ref": "#/components/schemas/RcsMessageContent"
          },
          {
            "type": "object",
            "properties": {
              "text": {
                "type": "string",
                "description": "Text message body",
                "example": "Hello world",
                "maxLength": 2000,
                "minLength": 1
              }
            }
          }
        ],
        "description": "Text message content",
        "required": [
          "text"
        ]
      },
      "ConversationApiAppDetails": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1
          },
          "projectId": {
            "type": "string"
          },
          "region": {
            "type": "string",
            "enum": [
              "BR",
              "EU",
              "US",
              "UNRECOGNIZED"
            ]
          }
        },
        "required": [
          "id",
          "projectId",
          "region"
        ]
      },
      "GoogleSupplier": {
        "type": "object",
        "properties": {
          "agentId": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "agentId"
        ]
      },
      "InboundSenderStatusWebhookRequest": {
        "type": "object",
        "discriminator": {
          "propertyName": "type"
        },
        "properties": {
          "type": {
            "type": "string",
            "description": "Types of Provisioning webhooks captured for sender status updates",
            "enum": [
              "RCS_SENDER_STATUS_UPDATED",
              "RCS_SENDER_OPERATOR_STATUS_UPDATED"
            ]
          },
          "comment": {
            "type": "string"
          },
          "senderDetails": {
            "$ref": "#/components/schemas/SenderDetails"
          }
        },
        "required": [
          "comment"
        ]
      },
      "RcsSenderOperatorStatusUpdatedWebhook": {
        "allOf": [
          {
            "$ref": "#/components/schemas/InboundSenderStatusWebhookRequest"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "description": "Type of webhook event",
                "enum": [
                  "RCS_SENDER_STATUS_UPDATED",
                  "RCS_SENDER_OPERATOR_STATUS_UPDATED"
                ],
                "example": "RCS_SENDER_OPERATOR_STATUS_UPDATED"
              },
              "payload": {
                "$ref": "#/components/schemas/SenderDetails",
                "description": "Details about the sender"
              },
              "operator": {
                "type": "string",
                "description": "Operator name",
                "example": "Verizon"
              },
              "operatorCountry": {
                "type": "string",
                "description": "Country code of the operator",
                "example": "US"
              },
              "operatorPreviousStatus": {
                "type": "string",
                "description": "Previous status of the sender on the operator network",
                "enum": [
                  "LAUNCHED",
                  "NOT_LAUNCHED",
                  "PENDING",
                  "PENDING_UNLAUNCHED",
                  "REJECTED",
                  "SUSPENDED",
                  "UNLAUNCHED",
                  "INVALID_IN_GOOGLE_MY_BUSINESS",
                  "UNRECOGNIZED"
                ],
                "example": "LAUNCHED"
              },
              "operatorCurrentStatus": {
                "type": "string",
                "description": "Current status of the sender on the operator network",
                "enum": [
                  "LAUNCHED",
                  "NOT_LAUNCHED",
                  "PENDING",
                  "PENDING_UNLAUNCHED",
                  "REJECTED",
                  "SUSPENDED",
                  "UNLAUNCHED",
                  "INVALID_IN_GOOGLE_MY_BUSINESS",
                  "UNRECOGNIZED"
                ],
                "example": "SUSPENDED"
              },
              "comment": {
                "type": "string",
                "description": "Comment or reason for the status change",
                "example": "Sender suspended due to policy violation"
              }
            }
          }
        ],
        "required": [
          "comment",
          "operator",
          "operatorCountry",
          "operatorCurrentStatus",
          "operatorPreviousStatus",
          "payload",
          "type"
        ]
      },
      "RcsSenderStatusUpdatedWebhook": {
        "allOf": [
          {
            "$ref": "#/components/schemas/InboundSenderStatusWebhookRequest"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "description": "Type of webhook event",
                "enum": [
                  "RCS_SENDER_STATUS_UPDATED",
                  "RCS_SENDER_OPERATOR_STATUS_UPDATED"
                ],
                "example": "RCS_SENDER_STATUS_UPDATED"
              },
              "payload": {
                "$ref": "#/components/schemas/SenderDetails",
                "description": "Details about the sender"
              },
              "previousState": {
                "type": "string",
                "description": "Previous status of the sender",
                "enum": [
                  "DRAFT",
                  "IN_PROGRESS",
                  "IN_TEST",
                  "LAUNCHED",
                  "LAUNCHING",
                  "PREPARING_LAUNCH",
                  "UNLAUNCHED",
                  "UNKNOWN",
                  "UNRECOGNIZED"
                ],
                "example": "LAUNCHED"
              },
              "currentState": {
                "type": "string",
                "description": "Current status of the sender",
                "enum": [
                  "DRAFT",
                  "IN_PROGRESS",
                  "IN_TEST",
                  "LAUNCHED",
                  "LAUNCHING",
                  "PREPARING_LAUNCH",
                  "UNLAUNCHED",
                  "UNKNOWN",
                  "UNRECOGNIZED"
                ],
                "example": "SUSPENDED"
              },
              "comment": {
                "type": "string",
                "description": "Comment or reason for the status change",
                "example": "Sender suspended due to policy violation"
              }
            }
          }
        ],
        "required": [
          "comment",
          "currentState",
          "payload",
          "previousState",
          "type"
        ]
      },
      "SenderDetails": {
        "type": "object",
        "description": "Details about the sender",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1
          },
          "conversationAppDetails": {
            "$ref": "#/components/schemas/ConversationApiAppDetails"
          },
          "supplierDetails": {
            "$ref": "#/components/schemas/SupplierDetails"
          }
        },
        "required": [
          "conversationAppDetails",
          "id",
          "supplierDetails"
        ]
      },
      "SupplierDetails": {
        "type": "object",
        "properties": {
          "google": {
            "$ref": "#/components/schemas/GoogleSupplier"
          }
        },
        "required": [
          "google"
        ]
      }
    }
  },
  "x-readme": {
    "explorer-enabled": false,
    "proxy-enabled": true
  }
}
```