Contacts API

get specific entry

GET /api/rest/admin/contacts/:id

Request

Headers

Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOjYxLCJhdWQiOlsiYWRtaW4iXSwiZXhwIjoxNzgxMjc5Mzk1fQ.BhPEt7TRQE_jT2CTtMpvOj7QKaP8LFaZx2jueZ8qrTc
Host: example.org
Cookie: 

Route

GET /api/rest/admin/contacts/53

Response

Headers

x-frame-options: SAMEORIGIN
x-xss-protection: 0
x-content-type-options: nosniff
x-permitted-cross-domain-policies: none
referrer-policy: strict-origin-when-cross-origin
content-type: application/vnd.api+json
vary: Accept
etag: W/"5771caa88e631e1d8f0119004ffbfa6f"
cache-control: max-age=0, private, must-revalidate
x-request-id: 4645a88f-bfda-4fd1-bdb0-a25cf80ee8b1
x-runtime: 0.005663
content-length: 398

Status

200 OK

Body

{
  "data": {
    "id": "53",
    "type": "contacts",
    "links": {
      "self": "http://example.org/api/rest/admin/contacts/53"
    },
    "attributes": {
      "email": "rspec_mail_3@example.com",
      "notes": null
    },
    "relationships": {
      "contractor": {
        "links": {
          "self": "http://example.org/api/rest/admin/contacts/53/relationships/contractor",
          "related": "http://example.org/api/rest/admin/contacts/53/contractor"
        },
        "data": {
          "type": "contractors",
          "id": "27"
        }
      }
    }
  }
}