RCS records

An RCS record stores information about an RCS message which was sent.

Fields

class RcsRecord
campaign: integer

The campaign the job belongs to.

id: integer

The RCS record’s unique ID.

job: integer

The RCS record’s job.

number: string

The recipient’s phone number, in international format.

reference: string

Your reference for this job (e.g. customer ID), which must be unique within the campaign.

state: integer

The RCS’s delivery state.

  • 0 = sent

  • 1 = delivered

  • 2 = failed

  • 3 = rejected

  • 4 = read

team: integer

The RCS record’s team.

timestamp: datetime

The RCS record’s date and time.

API

GET /j/rcs_records

Retrieves the list of RCS records.

You must specify a start date and an end date.

Example request:

GET /j/rcs_records?start=2015-01-06T00:00:00Z&end=2015-01-07T00:00:00Z&team=1 HTTP/1.1
Authorization: Bearer 0a1b2c3d4e5f

Example response:

HTTP/1.1 200 OK
Content-Type: application/json

[
   {
      "campaign": 1,
      "id": 1,
      "job": 1,
      "number": "+33612345678",
      "portal": null,
      "reference": "123456",
      "state": 0,
      "team": 1,
      "timestamp": "2015-01-06T10:21:14.243Z"
    }
]
Request Headers:
Query Parameters:
  • end (datetime) – An end date and time.

  • modified_since (datetime) – An optional date and time in the past 48 hours. If specified, only items modified after this moment will be returned.

  • start (datetime) – A start date and time.

  • team (integer) – An optional team ID.

  • include (string) – comma-separated list of optional fields to include in the response. Supported options: content_message

Response JSON Array of Objects:
  • campaign (integer) – The campaign the job belongs to.

  • id (integer) – The RCS record’s unique ID.

  • job (integer) – The RCS record’s job.

  • number (string) – The recipient’s phone number, in international format.

  • reference (string) – Your reference for this job (e.g. customer ID), which must be unique within the campaign.

  • state (integer) – The RCS’s delivery state.

  • team (integer) – The RCS record’s team.

  • timestamp (datetime) – The RCS record’s date and time.

Status Codes:
  • 200 OK – no error

  • 400 Bad Request – for instance a required field is missing

  • 403 Forbidden – you tried to access a forbidden resource, check you provided a valid OAuth token