Contacts API

get listing

GET /api/rest/admin/contacts

Parameters

Name Description
filter[id] id filter
filter[email-eq] email eq filter
filter[email-not-eq] email not eq filter
filter[email-cont] email cont filter
filter[email-start] email start filter
filter[email-end] email end filter
filter[email-in] email in filter
filter[email-not-in] email not in filter
filter[email-cont-any] email cont any filter
filter[notes-eq] notes eq filter
filter[notes-not-eq] notes not eq filter
filter[notes-cont] notes cont filter
filter[notes-start] notes start filter
filter[notes-end] notes end filter
filter[notes-in] notes in filter
filter[notes-not-in] notes not in filter
filter[notes-cont-any] notes cont any filter

Request

Headers

Version: HTTP/1.0
Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3MzE1Nzg3NTEsInN1YiI6NjV9.6_FJnnG5QEo9H69ABWCduuAOd4K85tDVwEG4Ni9Cx2E
Host: example.org
Cookie: 

Route

GET /api/rest/admin/contacts

Response

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 0
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Content-Type: application/vnd.api+json
Vary: Accept
ETag: W/"633e1aa0e4ea1e69e8b76ebe2173a47d"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 2d6ed215-19bd-4c9e-aca5-dfa561d300ea
X-Runtime: 0.008840
Content-Length: 1004

Status

200 OK

Body

{
  "data": [
    {
      "id": "55",
      "type": "contacts",
      "links": {
        "self": "http://example.org/api/rest/admin/contacts/55"
      },
      "attributes": {
        "email": "rspec_mail_1@example.com",
        "notes": null
      },
      "relationships": {
        "contractor": {
          "links": {
            "self": "http://example.org/api/rest/admin/contacts/55/relationships/contractor",
            "related": "http://example.org/api/rest/admin/contacts/55/contractor"
          },
          "data": {
            "type": "contractors",
            "id": "48"
          }
        }
      }
    },
    {
      "id": "56",
      "type": "contacts",
      "links": {
        "self": "http://example.org/api/rest/admin/contacts/56"
      },
      "attributes": {
        "email": "rspec_mail_2@example.com",
        "notes": null
      },
      "relationships": {
        "contractor": {
          "links": {
            "self": "http://example.org/api/rest/admin/contacts/56/relationships/contractor",
            "related": "http://example.org/api/rest/admin/contacts/56/contractor"
          },
          "data": {
            "type": "contractors",
            "id": "49"
          }
        }
      }
    }
  ],
  "meta": {
    "total-count": 2
  },
  "links": {
    "first": "http://example.org/api/rest/admin/contacts?page%5Bnumber%5D=1&page%5Bsize%5D=50",
    "last": "http://example.org/api/rest/admin/contacts?page%5Bnumber%5D=1&page%5Bsize%5D=50"
  }
}