Supported source attributes:

Attribute Type Description
id number Unique identifier of the source.
name string Name of the source.
creator_id number Unique identifier of the user that created the source.
resource_type string Type name of the resource the source is attached to. Possible values: deal
created_at string Date and time that the source was created in UTC (ISO8601 format).

Endpoints

Stream Source

Read the stream of source events.

See Introduction article for more details on request and response formats and parameters.

Action

GET /v3/sources/stream

Examples

Read the stream of source events

GET /v3/sources/stream?position=tailAccept: application/jsonAuthorization: Bearer $ACCESS_TOKENUser-Agent: $CLIENT_NAME
HTTP/1.1 200 OK   Content-Type: application/json
{ "items": [    {      "data": {        "name": "Our website",        "creator_id": 433275,        "resource_type": "deal",        "created_at": "2017-09-25T13:52:40Z",        "id": 1230106      },      "meta": {        "event_cause": "interaction",        "sequence": 1,        "event_id": "BJ5093YlSV6LcM6mO6Re7g",        "event_type": "created",        "type": "source",        "event_time": "2017-09-25T13:52:42Z"      }    }  ],  "meta": {    "links": {      "next": "https://api.getbase.com/v3/sources/stream?position=ZmlyZWhvc2UuZmFjdG9pZC5jb250YWN0LnNuYXBzaG90cywxLDMwNTQ5Mg=="    },    "position": "ZmlyZWhvc2UuZmFjdG9pZC5jb250YWN0LnNuYXBzaG90cywxLDMwNTQ5Mg==",    "top": false  }}