Skip to main content
Skip table of contents

[Integrations] Retrieve an Object

Request 

  • HTTP URL : https://<your-instance>.yooi.io/api/store/object/id/{COUNTRY FRANCE ID}

  • HTTP method: GET

Response

  • a JSON document representing the object

Example

Retrieve a country: France

We use the created object id to retrieve the complete France object.

BASH
curl -X 'GET' \
  'https://<your-instance>.yooi.io/api/store/object/id/936793b5-ca4a-481d-8dcd-756221937e95' \
  -H 'Authorization: Bearer '{Integration token}'

The result of the API call contains all object fields with their values:

JSON
{
  "id": "936793b5-ca4a-481d-8dcd-756221937e95",
  "key": "936793b5-ca4a-481d-8dcd-756221937e95",
  "ee3b77dc-4172-5aae-add8-627a43b06783": "a3a4f8d2-8f88-4398-99b9-37546ec9dfc1",
  "bf040b6b-58be-5194-8f32-4e1c8df24b42": [
    {
      "type": "paragraph",
      "children": [
        {
          "text": "France"
        }
      ]
    }
  ],
  "ae94d0af-526c-458f-b522-7d5653bc492d": 60000000,
  "30e01fe8-841d-43cb-814b-af97098ebfde": "z",
  "e8b10c4a-bae3-57cc-95c7-a22e69b5d4ae": 1632752769966,
  "436095ac-79f2-59c9-afa3-596bb1887f61": 1632752966122
}

If no values are returned, it means either:

  • The object has been deleted

  • The integration does not have the rights to see the given object

  • The object has never existed

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.