STIX 2.1 bundle of one subject, one entity, one source or one campaign
GET /v1/export/stix- who may call it
- Anyone
- no key and no session
- how fresh
- Cached for 5 minutes
- every answer carries the index's height and the node's
- MCP tool
- None
Exactly one of subject, entity, source or campaign. A subject bundle carries its observable, every annotation on it (expired with valid_until, retracted with revoked), the events that name it and, with community=true (never by default), the Community notes and labels as note, opinion and identity objects. An entity bundle carries the entity, its annotations (paged), its relations and its events. A source bundle pages the source's annotations by id (since bounds updated_at; cursor from the previous page) and carries its relations and events on the first page. A campaign bundle pages the campaign's members the same way, delisted ones with valid_until, and carries the campaign's report on the first page and a campaign object on every page: a member with an abuse word is an indicator that indicates the campaign, and a victim is a note on its observable and the campaign, never an indicator. Only current claims export: a provisional member is in no bundle, and include=provisional is refused. confidence_class and source_kind narrow the claims (events follow the source kind only). Ids are deterministic (type--uuid5(NS, type + ":" + key); SCO ids per the STIX rule), so bundles merge.
Parameters
| Name | Where | Type | Required | What it does |
|---|---|---|---|---|
subject | query | string | optional | <kind>:<key>, e.g. address:bc1q… |
entity | query | string | optional | An entity's id: the entity, its annotations by pages, its relations and its events. |
source | query | string | optional | A source's id: its annotations by pages, with its relations and events on the first page. A source that is not redistributable answers 403. |
campaign | query | string | optional | An event id, evt_<n>, or its slug: the campaign whose members export. |
confidence_class | query | string | optional | Only claims of this confidence class (e.g. authority_data; the confidence: prefix is optional). Levels are never combined. A class the vocabulary does not hold is a 400 invalid_input, never an empty list; one that no current claim carries answers nothing. GET /v1/taxonomy/concepts lists the classes, as confidence: concepts. |
source_kind | query | string | optional | Only claims from sources of this kind, one of the eleven a source can have; GET /v1/sources gives each source's kind. A kind that no registered source has answers nothing; any other value is a 400 invalid_input, never an empty list. |
since | query | string | optional | A date (2006-01-02) or an RFC 3339 timestamp; source, entity and campaign exports. |
cursor | query | string | optional | The next page of an entity, a source or a campaign: the X-Next-Cursor of the page before. An invalid one is a 400. |
limit | query | integer | optional | Annotations per page of an entity, a source or a campaign: 200 by default, at most 500; a value outside 1 to 500 reads as 200. |
community | query | boolean | optional | Subject exports only. |
What it answers
200 · application/stix+json;version=2.1
The bundle; X-Next-Cursor and x_btcintel_next_cursor when a further page exists.
Headers: X-Next-Cursor
| Field | Type | What it carries |
|---|---|---|
type | string | One of bundle. |
id | string | the contract says nothing more of it |
objects | array | the contract says nothing more of it |
objects[].type | string | the contract says nothing more of it |
objects[].id | string | the contract says nothing more of it |
x_btcintel_bundle_sha256 | string | SHA-256 of the RFC 8785 serialisation of objects. |
x_btcintel_omitted_sources | array | the contract says nothing more of it |
x_btcintel_next_cursor | string | the contract says nothing more of it |
schema StixBundle
typestring required · one of "bundle"idstring requiredobjectsarray of object requiredtypestring requiredidstring required- any other property
x_btcintel_bundle_sha256string required — SHA-256 of the RFC 8785 serialisation ofobjects.x_btcintel_omitted_sourcesarray of stringx_btcintel_next_cursorstring
Absent and empty
| The case | In the answer |
|---|---|
| An object derived from a source that is not redistributable. | It never enters a bundle; a note lists the omitted sources and x_btcintel_omitted_sources repeats them. |
| The last page. | No X-Next-Cursor and no x_btcintel_next_cursor. |
Errors
| Status | Code | When |
|---|---|---|
| 400 | invalid_input | A parameter outside the contract (invalid_input), named in the message. Among them a filter's value the API does not hold: a confidence_class the vocabulary does not hold, a source_kind outside the eleven. Such a request is never answered with an empty bundle. An include is refused too: an export takes none, and what it carries does not change with it. |
| 403 | forbidden | forbidden: the caller is known but may not do this: a key without the scope or the tier the action needs, a session without an npub, a second factor or a recent sign-in, an operator without the role or switched off, or a source that does not allow it. The message says which. |
| 404 | not_found | not_found: what the path names is not known: not in the index (for a transaction, not in the node's mempool either), or no such record. The message says which. |
Each comes in the one error envelope, and none is cached: an error carries Cache-Control: no-store.
Example
curl and jq, in any shell.
curl -s 'https://api.btcintel.io/v1/export/stix?limit=200&community=false' | jq '{type, id, x_btcintel_bundle_sha256}'