View Message


                https://api.ocamba.com/v1/hood/messages/{id}
            

Retrieves the details of a Message that has previously been created if a valid identifier was provided


Name
Description
idstringrequired
Unique resource identifier.


Example: 12345

Name
Description
fieldsstring
Fields parameter represents array of dimensions and measures. Dimensions are used to categorize, segment, and reveal the details of the data. Measures contain numeric, quantitative values that can be measured. At least one measure is required.


Example: fields=field1,field2,field3

viewstring
Hood API returns full representation of the resource using the "view=full" query parameter. If not specified, the default view will be used.

Note that the "fields" parameter has precedence over the "view" parameter.


Example: view=full/default

outstring
Data format output - 'csv' (default) or 'json'.


Example: out=json


200 - OK
Arrow
Name
Description
items[ message ]
An array of all created items.
Message
Name
Description
actions[ object ]
Content of the action button presented to the user.


Example: [ { "title": { "en": "en_title" }, "icon": "https://example.com", "url": "https://example.com" } ]

badgestring
Monochromatic mini-icon which portrays to user source where he subscribed in the first place.


Example: https://www.badgeexample.com

bodyobject
Brief title-related textual addition as pairs of keys and values, where key represents language and value body in that language.


Example: { "en": "en_body" "de": "de_body" }

company_idstring
A unique company identifier generated by the Ocamba.


Example: 1234321

iconstring
Secondary visual attribute presented to the user.


Example: https://www.iconexample.com

idstring
A unique identifier generated by the Ocamba.


Example: 1018

imageobject
Image addresses as pairs of key and value, where key represents language and value image for that language region.


Example: { "en": "https://example.com" }

landing_urlstring
Page address where the user will land after clicking on it. Max length is 2048 characters.


Example: https://www.landingurlexample.com

namestring
Message name.


Example: msg_example

renotifyinteger
Replacing old notification with the new one using the silent method. Applicable only with tag option.

require_interactioninteger
Demand action execution from the user. Applicable only for desktop users.


Example: 1

silentinteger
Serving notification without sound and vibration. Applicable only to mobile devices.


Example: 1

tagstring
This option enables the removal of notifications with the same tag which were delivered earlier.


Example: tag

titleobject
The main textual aspect as pairs of keys and values, where key represents language and value title in that language.


Example: { "en": "en_title" "de": "de_title" }

vibrationstring
Two vibration pulses with customizable length and pause between them, described in milliseconds (200,100,200 formats), will start when a notification is displayed. Applicable only for Android users.


Example: 100,100

totalinteger
A total number of items.


Example: 1
tip
1 If you don't know the message id, list the messages to find it.
200 Arrow
{
  "total":1,
  "items": [
    {
      "id": "1",
      "company_id": "123456",
      "name": "my_msg",
      "title": {
        "en": "en_title"
      },
      "body": {
        "en": "en_body"
      },
      "image": {
        "en": "https://example.com"
      },
      "landing_url": "https://example.com",
      "actions": [
        {
          "title": {
            "en": "Yes"
          },
          "icon": "https://example.com",
          "url": "https://example.com"
        },
        {
          "title": {
            "en": "No"
          },
          "icon": "https://example.com"
        }
      ],
      "create_time": "2021-11-10 12:53:58"
    }
  ]
}
{
  "total": 1,
  "items": [
    {
      "id": "1018",
      "company_id": "1234321",
      "name": "msg_example",
      "title": "{\n  \"en\": \"en_title\"\n  \"de\": \"de_title\"\n}",
      "body": "{\n  \"en\": \"en_body\"\n  \"de\": \"de_body\"\n}",
      "image": "{\n  \"en\": \"https://example.com\"\n}",
      "icon": "https://www.iconexample.com",
      "landing_url": "https://www.landingurlexample.com",
      "tag": "tag",
      "require_interaction": 1,
      "silent": 1,
      "vibration": "100,100",
      "badge": "https://www.badgeexample.com",
      "actions": [
        null
      ]
    }
  ]
}