Download OpenAPI specification:Download
Get the resolved db-basis for the given valid-time/transaction
| valid-time | string |
| tx-time | string |
| tx-id | integer <int64> |
| await-tx-id | integer <int64> |
| await-tx-time | string |
| await-tx-timeout | integer <int64> |
{- "txId": 4,
- "txTime": "2020-11-04T15:43:12Z",
- "validTime": "2020-11-05T17:19:39Z"
}Get information about a particular entity
| sort-order | string |
| start-tx-id | integer <int64> |
| valid-time | string |
| end-tx-id | integer <int64> |
| link-entities? | boolean |
| await-tx-timeout | integer <int64> |
| eid-json | string JSON formatted entity ID |
| with-corrections | boolean |
| start-tx-time | string |
| eid-edn | string EDN formatted entity ID |
| start-valid-time | string |
| tx-time | string |
| await-tx-time | string |
| end-tx-time | string |
| with-docs | boolean |
| history | boolean |
| await-tx-id | integer <int64> |
| eid | string |
| tx-id | integer <int64> |
| end-valid-time | string |
{- "age": 20,
- "xt/id": "hello"
}Perform a datalog query
| in-args-json | Array of any Example: in-args-json=["foo",123] JSON formatted :in binding arguments |
| valid-time | string |
| link-entities? | boolean |
| await-tx-timeout | integer <int64> |
| in-args-edn | Array of any Example: in-args-edn=["foo" 123] EDN formatted :in binding arguments |
| tx-time | string |
| await-tx-time | string |
| query-edn | string Example: query-edn={:find [e], :where [[e :xt/id _]], :limit 100} EDN formatted Datalog query |
| await-tx-id | integer <int64> |
| tx-id | integer <int64> |
[- [
- "user-1",
- "George",
- "Example"
], - [
- "user-2",
- "Sally",
- "Test"
], - [
- "user-3",
- "John",
- "Smith"
]
]Perform a datalog query
| in-args-json | Array of any Example: in-args-json=["foo",123] JSON formatted :in binding arguments |
| valid-time | string |
| link-entities? | boolean |
| await-tx-timeout | integer <int64> |
| in-args-edn | Array of any Example: in-args-edn=["foo" 123] EDN formatted :in binding arguments |
| tx-time | string |
| await-tx-time | string |
| query-edn | string Example: query-edn={:find [e], :where [[e :xt/id _]], :limit 100} EDN formatted Datalog query |
| await-tx-id | integer <int64> |
| tx-id | integer <int64> |
| query required | any (xtdb.http-server.query/query) Datalog query |
| in-args | Array of any (xtdb.http-server.query/in-args) :in binding arguments |
{- "query": {
- "find": [
- "e"
], - "where": [
- [
- "e",
- "xt/id",
- "_"
]
], - "limit": 100
}, - "in-args": [
- "foo",
- 123
]
}[- [
- "user-1",
- "George",
- "Example"
], - [
- "user-2",
- "Sally",
- "Test"
], - [
- "user-3",
- "John",
- "Smith"
]
]Get transactional information an particular entity
| valid-time | string |
| await-tx-timeout | integer <int64> |
| eid-json required | string JSON formatted entity ID |
| eid-edn required | string EDN formatted entity ID |
| tx-time | string |
| await-tx-time | string |
| await-tx-id | integer <int64> |
| eid required | string |
| tx-id | integer <int64> |
{- "txId": 5,
- "contentHash": "99747f80357c336ee5efd073c878313bf85b07f9",
- "txTime": "2020-10-16T14:29:35Z",
- "id": "5aeebab117b892fa42002146e4c62be676bc4621",
- "validTime": "2020-10-16T14:29:35Z"
}Get a list of all transactions
| with-ops? | boolean |
| after-tx-id | integer <int64> |
| await-tx-id | integer <int64> |
| await-tx-time | string |
| await-tx-timeout | integer <int64> |
[- {
- "txEvents": [
- [
- "put",
- "83bed47ace572cb94c2f137f58bce73b9b7d0039",
- "f441402b3c5d37365203947aabe85cf471498bf0",
- "2020-06-20T20:05:50Z"
]
], - "txId": 0,
- "txTime": "2020-10-16T09:02:43Z"
}, - {
- "txEvents": [
- [
- "put",
- "83bed47ace572cb94c2f137f58bce73b9b7d0039",
- "f441402b3c5d37365203947aabe85cf471498bf0",
- "2020-06-20T20:05:50Z"
]
], - "txId": 1,
- "txTime": "2020-10-16T09:28:27Z"
}
]Takes a vector of transactions - Writes to the node
object (xtdb.api/submit-tx-opts) | |
| tx-ops required | Array of any |
{- "xtdb.api/submit-tx-opts": {
- "xtdb.api/tx-time": null
}, - "tx-ops": [
- null
]
}{- "txId": 6,
- "txTime": "2020-10-19T09:21:29Z"
}[- {
- "query": "{:find [e first-name], :where [[e :first-name first-name] [e :last-name \"Tutorial\"]]}",
- "startedAt": "2020-10-16T15:48:52Z",
- "finishedAt": null,
- "error": null,
- "queryId": "ae17c599-dcd2-47ee-bebd-47a3122f8d34",
- "status": "in-progress"
}
][- {
- "query": "{:find [e first-name], :where [[e :first-name first-name] [e :last-name \"Tutorial\"]]}",
- "startedAt": "2020-10-16T15:48:52Z",
- "finishedAt": "2020-10-16T15:48:52Z",
- "error": null,
- "queryId": "ae17c599-dcd2-47ee-bebd-47a3122f8d34",
- "status": "completed"
}
][- {
- "query": "{:find [e first-name], :where [[e :first-name first-name] [e :last-name \"Tutorial\"]]}",
- "startedAt": "2020-10-16T15:48:52Z",
- "finishedAt": "2020-10-16T15:48:52Z",
- "error": null,
- "queryId": "ae17c599-dcd2-47ee-bebd-47a3122f8d34",
- "status": "completed"
}
]