Retrieve Connection State
This endpoint returns the connection state for Function and Connector SDK connections. Sending a request for any other connection type returns 400 Bad Request. To update the connection state, use Update Connection State.
To read the sync status for any connection type, use Retrieve connection details and inspect the status object in the response.
Request schema
Path parameters
The unique identifier of the connection. Retrieve it from the id field in the List All Connections response, or from the id field returned when you Create a Connection.
Header parameters
HTTP: basicAuth
HTTP AuthorizationScheme: basic
GET /v1/connections/4107c213907114059a5544ad8fa66c52/state HTTP/1.1 Accept: application/json;version=2 Authorization: BasicHost: api.fivetran.com
Responses
200
Response status code
Response status text
A freeform JSON object representing the connector's cursor or internal state. The structure is defined by the connector implementation and varies by connector type. Returns 400 if no state has been written yet.
{ "code": "Success", "message": "Connection state retrieved successfully", "data": { "state": { "cursor": "2024-01-01T00:00:00Z" } } }