Get Started
Monitors
Incidents
Analytics
Data Warehouse Integrations
SQLMesh Integrations
Orchestration Tool Integrations
Alerting Integrations
Catalogs
Security
Support
Developer API
- Getting Started
- REST API
- ChangesService
- CodeService
- DatabaseCoordinatesService
- SqlTestsService
- TestSuggestionsService
- DwhService
- EntitiesService
- EntityExecutionsService
- AtlanIntegrationService
- AtlanProviderService
- AtlanWorkflowService
- CommitsService
- ImpactService
- IncidentsService
- IssuesService
- LineageService
- DeploymentRulesService
- HistoryService
- MonitorInfoService
- PlatformsService
- SchemasService
- EntityIncidentsService
- EntityIssuesService
- TriageService
- gRPC API
- Webhooks
CodeService
Get apicodev1
ListCode retrieves all code artifacts associated with a specific entity. This includes SQL queries, Python scripts, dbt models, and other code configurations that define or are part of the entity’s functionality.
GET
/
api
/
code
/
v1
/
{id}
Copy
Ask AI
curl --request GET \
--url https://developer.synq.io/api/code/v1/{id} \
--header 'Authorization: Bearer <token>'
Copy
Ask AI
{
"codes": [
{
"definerIdentifier": {
"dbtCoreNode": {
"integrationId": "<string>",
"nodeId": "<string>"
},
"dbtCloudNode": {
"projectId": "<string>",
"accountId": "<string>",
"nodeId": "<string>"
},
"bigqueryTable": {
"project": "<string>",
"dataset": "<string>",
"table": "<string>"
},
"snowflakeTable": {
"account": "<string>",
"database": "<string>",
"schema": "<string>",
"table": "<string>"
},
"redshiftTable": {
"cluster": "<string>",
"database": "<string>",
"schema": "<string>",
"table": "<string>"
},
"postgresTable": {
"host": "<string>",
"database": "<string>",
"schema": "<string>",
"table": "<string>"
},
"mysqlTable": {
"host": "<string>",
"schema": "<string>",
"table": "<string>"
},
"clickhouseTable": {
"host": "<string>",
"schema": "<string>",
"table": "<string>"
},
"airflowDag": {
"integrationId": "<string>",
"dagId": "<string>"
},
"airflowTask": {
"integrationId": "<string>",
"dagId": "<string>",
"taskId": "<string>"
},
"custom": {
"id": "<string>"
},
"dataproduct": {
"id": "<string>"
},
"synqPath": {
"path": "<string>"
},
"databricksTable": {
"workspace": "<string>",
"catalog": "<string>",
"schema": "<string>",
"table": "<string>"
},
"trinoTable": {
"host": "<string>",
"catalog": "<string>",
"schema": "<string>",
"table": "<string>"
},
"sqlMeshModel": {
"integrationId": "<string>",
"fqn": "<string>"
},
"sqlMeshAudit": {
"integrationId": "<string>",
"fqn": "<string>",
"auditId": "<string>"
},
"monitor": {
"monitoredId": {},
"monitorId": "<string>",
"segment": "<string>",
"integrationId": "<string>"
}
},
"definerSynqPath": "<string>",
"stateAt": "2023-11-07T05:31:56Z",
"codeType": 123,
"sqlDialect": 123,
"content": "<string>",
"codeName": "<string>",
"filePath": "<string>"
}
]
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Identifier of the entity to retrieve code for. This can be any entity type that contains code artifacts.
Response
200
application/json
OK
ListCodeResponse is the response message for the ListCode method.
Copy
Ask AI
curl --request GET \
--url https://developer.synq.io/api/code/v1/{id} \
--header 'Authorization: Bearer <token>'
Copy
Ask AI
{
"codes": [
{
"definerIdentifier": {
"dbtCoreNode": {
"integrationId": "<string>",
"nodeId": "<string>"
},
"dbtCloudNode": {
"projectId": "<string>",
"accountId": "<string>",
"nodeId": "<string>"
},
"bigqueryTable": {
"project": "<string>",
"dataset": "<string>",
"table": "<string>"
},
"snowflakeTable": {
"account": "<string>",
"database": "<string>",
"schema": "<string>",
"table": "<string>"
},
"redshiftTable": {
"cluster": "<string>",
"database": "<string>",
"schema": "<string>",
"table": "<string>"
},
"postgresTable": {
"host": "<string>",
"database": "<string>",
"schema": "<string>",
"table": "<string>"
},
"mysqlTable": {
"host": "<string>",
"schema": "<string>",
"table": "<string>"
},
"clickhouseTable": {
"host": "<string>",
"schema": "<string>",
"table": "<string>"
},
"airflowDag": {
"integrationId": "<string>",
"dagId": "<string>"
},
"airflowTask": {
"integrationId": "<string>",
"dagId": "<string>",
"taskId": "<string>"
},
"custom": {
"id": "<string>"
},
"dataproduct": {
"id": "<string>"
},
"synqPath": {
"path": "<string>"
},
"databricksTable": {
"workspace": "<string>",
"catalog": "<string>",
"schema": "<string>",
"table": "<string>"
},
"trinoTable": {
"host": "<string>",
"catalog": "<string>",
"schema": "<string>",
"table": "<string>"
},
"sqlMeshModel": {
"integrationId": "<string>",
"fqn": "<string>"
},
"sqlMeshAudit": {
"integrationId": "<string>",
"fqn": "<string>",
"auditId": "<string>"
},
"monitor": {
"monitoredId": {},
"monitorId": "<string>",
"segment": "<string>",
"integrationId": "<string>"
}
},
"definerSynqPath": "<string>",
"stateAt": "2023-11-07T05:31:56Z",
"codeType": 123,
"sqlDialect": 123,
"content": "<string>",
"codeName": "<string>",
"filePath": "<string>"
}
]
}
Assistant
Responses are generated using AI and may contain mistakes.