Skip to main content
POST
/
api
/
search
/
search.v1
curl --request POST \
  --url http://localhost/api/search/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "ledgers": [
    "quickstart"
  ],
  "after": [
    "users:002"
  ],
  "pageSize": 1,
  "terms": [
    "destination=central_bank1"
  ],
  "sort": "id:asc",
  "policy": "OR",
  "target": "<string>",
  "cursor": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol=",
  "raw": {
    "query": {
      "match_all": {}
    }
  }
}'
{
  "data": {},
  "cursor": {
    "pageSize": 1,
    "hasMore": true,
    "total": {
      "value": 1,
      "relation": "eq"
    },
    "next": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol=",
    "previous": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol=",
    "data": [
      {}
    ]
  }
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json
ledgers
string[]
after
string[]
pageSize
integer
Required range: x >= 0
terms
string[]
sort
string
Example:

"id:asc"

policy
string
Example:

"OR"

target
string
cursor
string
Example:

"YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol="

raw
object
Example:
{ "query": { "match_all": {} } }

Response

Success

data
object

The payload

cursor
object