POST
/
v1
/
messages
curl --request POST \
  --url https://api.openphone.com/v1/messages \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "content": "<string>",
  "phoneNumberId": "OP1232abc",
  "from": "<string>",
  "to": [
    "+15555555555"
  ],
  "userId": "US123abc",
  "setInboxStatus": "done"
}'
{
  "data": {
    "id": "AC123abc",
    "to": [
      "+15555555555"
    ],
    "from": "+15555555555",
    "text": "Hello, world!",
    "phoneNumberId": "PN123abc",
    "direction": "incoming",
    "userId": "US123abc",
    "status": "sent",
    "createdAt": "2022-01-01T00:00:00Z",
    "updatedAt": "2022-01-01T00:00:00Z"
  }
}

Authorizations

Authorization
string
header
required

Body

application/json

Response

202
application/json

Success

The response is of type object.