POST
/
api
/
v2
/
public
/
datastore
/
config
/
:slug
/
:datastore_name
/
search
curl --request POST \
  --url https://api.gocobalt.io/api/v2/public/datastore/config/:slug/:datastore_name/search \
  --header 'Content-Type: application/json' \
  --header 'linked_account_id: <linked_account_id>' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "record_id": "<string>",
  "item": "<string>",
  "value": "<string>"
}'
[
    {
        "record_id": "fa796472-a22c-4c58-bf4a-cf2809fe4253",
        "item": "uniqueItem_22",
        "value": "uniqueValue_22"
    }
]

This API searches for records within a config datastore.

Request description

Headers

linked_account_id
string
required

Unique customer identification id. For Eg: markwood@some_email.com

Path Parameters

slug
string
required

Application Slug. Eg: hubspot

datastore
string
required

Name of the datastore to be searched.

Body Parameters

record_id
string

Unique ID of the record.

item
string

Key/ item name.

value
string

Value of a key to use for search.

If the Request Body is sent as empty, the API response will be an empty array.

Response description

record_id
string

Unique ID of the record.

item
string

Name of the key or item.

value
string

String stored as the value of the item.

[
    {
        "record_id": "fa796472-a22c-4c58-bf4a-cf2809fe4253",
        "item": "uniqueItem_22",
        "value": "uniqueValue_22"
    }
]