Get Sync Target Fields
Returns the fields of a specific target object on a connection.
Pass the target object identifier to retrieve the fields available for
mapping on that object. These are the destination fields you can reference
when configuring field mappings in a model sync.
> π To list available target objects and their identifiers, use
> [`GET /api/connections/{id}/modelsync/targetobjects`](../../../../../../api-reference/model-sync/targets/list).
Fields returned here reflect the connection's current cached state. If the
upstream object schema has changed, trigger a schema refresh with
[`POST /api/connections/{id}/schemas/refresh`](../../../../../../api-reference/schemas/refresh)
before calling this endpoint.
Authentication
AuthorizationBearer
Bearer user API key
OR
AuthorizationBasic
Basic organization-scoped API key
Path parameters
id
Unique identifier of the connection.
Headers
X-Polytomic-Version
Query parameters
target
Identifier of the target object (e.g. schema.table for a database destination, object name for a SaaS destination).
refresh
When true, force a cache refresh of the target's schema before returning its fields.
Response
OK
data
Errors
403
Forbidden Error
404
Not Found Error
500
Internal Server Error
