Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Whats App

This page describes the APIs relating to WhatsApp conversations, form submissions and usage. They return metadata only: never message text, form answers, phone numbers, WhatsApp names or attachments. Available to schools with the WhatsApp module enabled; otherwise they answer 403.

Get all WhatsApp Conversations

get
/api/v3/whatsapp/conversations

One record per WhatsApp conversation (a 1:1 thread between the school and one family), with metadata only. id is stable and opaque. Families are identified by the Contact, Parent and Student ids the rest of the API returns; several parents may share one number, so ids are arrays. first_response_seconds runs from the family's first message to the first reply a staff member sent, and is null while the school has not replied. awaiting_reply is true when the last message came from the family. form names the WhatsApp Form the conversation started with, or is null. Results are paginated via page and per_page. since_date selects by message time only: a change to the linked ids alone does not count.

Timestamps and dates are in UTC unless the school has "Use school timezone" enabled for the API, in which case they follow the school timezone.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
pageinteger · min: 1Optional

The page number of results to return.

Default: 1
per_pageinteger · min: 1 · max: 200Optional

Request for how many records to return.

Default: 50
countintegerOptional

Synonym for per_page

started_fromstring · dateOptional

Only conversations whose first message is on or after this date.

Example: 2026-09-01
started_tostring · dateOptional

Only conversations whose first message is on or before this date.

Example: 2026-09-30
since_datestring · date_timeOptional

Only conversations with a message after this point in time. A change to the linked ids alone, such as a Contact converting, does not count.

Example: 2026-09-15T00:00:00Z
Responses
200

successful

application/json
get/api/v3/whatsapp/conversations
GET /api/v3/whatsapp/conversations HTTP/1.1
Host: api.openapply.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "conversations": [
    {
      "id": 4821,
      "started_at": "2026-09-14T08:02:11.000Z",
      "last_message_at": "2026-09-15T10:41:03.000Z",
      "inbound_count": 3,
      "outbound_count": 2,
      "first_response_seconds": 5460,
      "awaiting_reply": false,
      "parent_ids": [
        9021
      ],
      "contact_ids": [
        312
      ],
      "student_ids": [
        55012,
        55013
      ],
      "replied_by_staff_ids": [
        77
      ],
      "form": {
        "id": 12,
        "name": "Enquiry Form"
      }
    }
  ],
  "meta": {
    "page": 1,
    "pages": 3,
    "per_page": 50
  }
}

Get all WhatsApp Form Submissions

get
/api/v3/whatsapp/form_submissions

One record per completed WhatsApp Form a family sent in, with metadata only: the form, when it arrived, the conversation it belongs to, and the Contact it created (outcome: created) or updated (outcome: updated). student_ids lists the students of a Contact that has since become an applicant. Form answers are never returned. Results are paginated via page and per_page.

Timestamps and dates are in UTC unless the school has "Use school timezone" enabled for the API, in which case they follow the school timezone.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
pageinteger · min: 1Optional

The page number of results to return.

Default: 1
per_pageinteger · min: 1 · max: 200Optional

Request for how many records to return.

Default: 50
countintegerOptional

Synonym for per_page

submitted_fromstring · dateOptional

Only submissions received on or after this date.

Example: 2026-09-01
submitted_tostring · dateOptional

Only submissions received on or before this date.

Example: 2026-09-30
since_datestring · date_timeOptional

Only submissions received after this point in time. A later change to the Contact, such as student_ids filling in once it converts, does not count.

Example: 2026-09-15T00:00:00Z
Responses
200

successful

application/json
get/api/v3/whatsapp/form_submissions
GET /api/v3/whatsapp/form_submissions HTTP/1.1
Host: api.openapply.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "form_submissions": [
    {
      "id": 88,
      "conversation_id": 4821,
      "submitted_at": "2026-09-14T08:05:40.000Z",
      "contact_id": 312,
      "student_ids": [],
      "outcome": "created",
      "form": {
        "id": 12,
        "name": "Enquiry Form"
      }
    }
  ],
  "meta": {
    "page": 1,
    "pages": 1,
    "per_page": 50
  }
}

Get the WhatsApp Usage Summary

get
/api/v3/whatsapp/usage

Totals per day, week (starting Monday) or month across a date range. Each bucket counts the conversation and form submission records the two lists return for the same dates: conversations by the date they started, messages by the date they were sent or received, form submissions by the date they arrived, contacts_created by the date a WhatsApp Form created the Contact (a Contact whose form has since been deleted is not counted) and contacts_converted by the date the Parent such a Contact converted into was created. The first and last buckets may extend beyond from and to but count only the dates inside the range. first_response_average_seconds and first_response_median_seconds cover the conversations that started in the bucket and have been replied to; both are null when none has.

Message counts follow the date of each message, while a conversation's inbound_count and outbound_count cover the whole conversation. A bucket's messages_received therefore need not equal the inbound_count of the conversations started in it; over the whole history the two agree.

Timestamps and dates are in UTC unless the school has "Use school timezone" enabled for the API, in which case they follow the school timezone. Buckets are cut in that same timezone.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
periodstring · enumRequired

Bucket size. Weeks start on Monday, months on the 1st.

Possible values:
fromstring · dateRequired

First date of the range, inclusive.

Example: 2026-09-01
tostring · dateRequired

Inclusive. At most 366 days after from; a longer range answers 400.

Example: 2026-09-30
Responses
200

successful

application/json
get/api/v3/whatsapp/usage
GET /api/v3/whatsapp/usage?period=day&from=2026-09-01&to=2026-09-30 HTTP/1.1
Host: api.openapply.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "buckets": [
    {
      "starts_on": "2026-08-31",
      "conversations_started": 14,
      "messages_received": 51,
      "messages_sent": 38,
      "form_submissions": 9,
      "contacts_created": 6,
      "contacts_converted": 2,
      "first_response_average_seconds": 4210,
      "first_response_median_seconds": 1800
    }
  ],
  "meta": {
    "period": "week",
    "from": "2026-09-01",
    "to": "2026-09-14"
  }
}

Last updated