Skip to main content
GET
/
v1
/
contexts
/
{contextId}
/
sources
/
{sourceId}
/
bindings
/
{bindingId}
Get a source binding
curl --request GET \
  --url https://matcher.sandbox.lerian.net/v1/contexts/{contextId}/sources/{sourceId}/bindings/{bindingId} \
  --header 'Authorization: Bearer <token>'
{
  "contextId": "<string>",
  "createdAt": "<string>",
  "enabled": true,
  "format": "<string>",
  "id": "<string>",
  "scheduleSpec": "<string>",
  "sourceId": "<string>",
  "updatedAt": "<string>",
  "connectionId": "<string>",
  "transportConfig": {
    "host": "<string>",
    "connectOptions": {},
    "credentialRef": "<string>",
    "glob": "<string>",
    "path": "<string>",
    "port": 123
  }
}

Authorizations

Authorization
string
header
required

Bearer token authentication (format: "Bearer {token}")

Path Parameters

contextId
string<uuid>
required

Context ID

sourceId
string<uuid>
required

Source ID

bindingId
string<uuid>
required

Binding ID

Response

OK

contextId
string
required

Identifier of the context this binding belongs to.

Example:

"550e8400-e29b-41d4-a716-446655440000"

createdAt
string
required

Creation timestamp in RFC 3339 format.

Example:

"2025-01-15T10:30:00Z"

enabled
boolean
required

Whether the binding runs.

Example:

true

format
string
required

Declared format the binding produces, as a region/family-namespaced descriptor key.

Example:

"br/cnab400/default"

id
string
required

Unique identifier of the binding.

Example:

"550e8400-e29b-41d4-a716-446655440000"

kind
enum<string>
required

Rail the source is pulled on. file fetches files via a transport; query pulls rows through a discovery-engine connection.

Available options:
file,
query
Example:

"file"

scheduleSpec
string
required

Interval schedule spec the binding scheduler reads (cron or @every duration).

Example:

"@every 1h"

sourceId
string
required

Identifier of the source this binding belongs to.

Example:

"550e8400-e29b-41d4-a716-446655440000"

updatedAt
string
required

Last update timestamp in RFC 3339 format.

Example:

"2025-01-15T10:30:00Z"

connectionId
string

Query-rail engine connection reference (UUID). Omitted for file-rail bindings.

Example:

"550e8400-e29b-41d4-a716-446655440000"

transportConfig
object

File-rail transport configuration. Omitted for query-rail bindings.