Documentation Flow API
|
The REST API is currently in Early Access Preview. The API specification and endpoints might change before being marked as stable. We recommend testing thoroughly and being prepared to adapt to potential changes in future releases. |
The Documentation Flow API allows you to programmatically trigger documentation flows on your data source connections.
Documentation flows automate the process of discovering and enriching data assets in your catalog. A documentation flow runs asynchronously on a connection and can perform one or more of the following operations, depending on the configuration used: metadata import, term detection, profiling, and DQ evaluation.
Before using the Documentation Flow API, configure authentication as described in API Authentication.
API base URL
All Documentation Flow API endpoints are accessed through the following base URL:
https://{your-environment}.ataccama.one/api/catalog/v1
Replace {your-environment} with your environment identifier from the Ataccama Cloud Portal.
List documentation flow configurations
Retrieve a paginated list of available documentation flow configurations. Use this endpoint to find the configuration URN needed to start a documentation flow.
curl -X GET "https://{your-environment}.ataccama.one/api/catalog/v1/documentation-flow/configurations?size=20" \
-H "Authorization: Bearer {access_token}"
| Parameter | Type | Required | Description |
|---|---|---|---|
|
string |
No |
Cursor for forward pagination. |
|
integer |
No |
Number of configurations to return. Default: Max: |
{
"meta": {
"next": "2",
"total": 3
},
"data": [
{
"urn": "urn:ata:{your-tenant}:catalog:documentation-flow-configuration:c53ebb75-b2f4-4ca5-bc73-0f2848b84374",
"name": "Import metadata",
"description": "Import metadata to the Data Catalog without accessing any data.",
"configuration": "{\"actions\" : [\"IMPORT\"]}"
},
{
"urn": "urn:ata:{your-tenant}:catalog:documentation-flow-configuration:a74ed274-ad79-4c87-bdcc-9a986363f763",
"name": "Detect terms",
"description": "Import metadata and detect terms based on detection rules.",
"configuration": "{\"actions\" : [\"IMPORT\", \"TERM_DETECTION\"]}"
}
]
}
The response includes the following fields for each configuration:
-
urn: URN identifier of the configuration. -
name: Name of the documentation flow configuration. -
description: Description of the documentation flow configuration. -
configuration: Configuration of the documentation flow in JSON format.
Start a documentation flow
Start a documentation flow asynchronously with a given configuration on a connection. The request is accepted for processing and returns a workflow URN that identifies the running flow.
curl -X POST "https://{your-environment}.ataccama.one/api/catalog/v1/documentation-flow/start" \
-H "Authorization: Bearer {access_token}" \
-H "Content-Type: application/json" \
-d '{
"configurationUrn": "urn:ata:{your-tenant}:catalog:documentation-flow-configuration:123e4567-e89b-12d3-a456-426614174000",
"connectionUrn": "urn:ata:{your-tenant}:processing:connection:b812d964-f94e-4be7-85c3-0073742ade09"
}'
| Field | Type | Required | Description |
|---|---|---|---|
|
string |
Yes |
URN of the documentation flow configuration to use. Retrieve available configurations using List documentation flow configurations. |
|
string |
Yes |
URN of the connection to run the documentation flow on.
You can find connection URNs in catalog item responses using the Get a catalog item endpoint ( |
|
array of strings |
No |
List of paths to run the documentation flow on. When omitted, the flow runs on the whole connection. |
The API returns the HTTP status code 202 Accepted, confirming that the flow has been accepted for asynchronous processing.
{
"workflowUrn": "urn:ata:{your-tenant}:processing:workflow:a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d"
}
The response includes:
-
workflowUrn: URN of the processing workflow created for this documentation flow.
Complete example
Here’s a complete example that lists available configurations and starts a documentation flow:
# 1. Obtain access token
TOKEN=$(curl -s -X POST "https://{your-environment}.ataccama.one/auth/realms/{your-realm}/protocol/openid-connect/token" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "grant_type=client_credentials" \
-d "client_id={your-client-id}" \
-d "client_secret={your-client-secret}" \
| jq -r '.access_token')
# 2. List available documentation flow configurations
curl -s -X GET "https://{your-environment}.ataccama.one/api/catalog/v1/documentation-flow/configurations" \
-H "Authorization: Bearer $TOKEN"
# 3. Start a documentation flow on a connection
curl -s -X POST "https://{your-environment}.ataccama.one/api/catalog/v1/documentation-flow/start" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"configurationUrn": "urn:ata:{your-tenant}:catalog:documentation-flow-configuration:123e4567-e89b-12d3-a456-426614174000",
"connectionUrn": "urn:ata:{your-tenant}:processing:connection:b812d964-f94e-4be7-85c3-0073742ade09"
}'
# 4. Start a documentation flow on specific paths only
curl -s -X POST "https://{your-environment}.ataccama.one/api/catalog/v1/documentation-flow/start" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"configurationUrn": "urn:ata:{your-tenant}:catalog:documentation-flow-configuration:123e4567-e89b-12d3-a456-426614174000",
"connectionUrn": "urn:ata:{your-tenant}:processing:connection:b812d964-f94e-4be7-85c3-0073742ade09",
"paths": ["public/customers", "public/orders"]
}'
Error handling
The API returns standard HTTP status codes and problem details for errors:
| Status code | Description |
|---|---|
|
Configuration listing successful. |
|
Documentation flow accepted for asynchronous processing. |
|
Invalid request parameters or body. |
|
Insufficient permissions to access the requested resource. |
|
Configuration or connection does not exist. |
{
"type": "RESOURCE_NOT_FOUND",
"title": "Resource Not Found",
"detail": "Resource 'urn:ata:acme-corp:catalog:documentation-flow-configuration:123e4567-e89b-12d3-a456-426614174000' was not found"
}
Next steps
-
Learn about managing catalog items to work with the data assets discovered by documentation flows.
-
Learn about managing terms for business glossary automation.
-
Download the Catalog API OpenAPI specification for detailed API reference.
Was this page useful?