Skip to main content

API Workflows

Create an API workflow​

POST /views/{viewId}/api-workflows

Code samples


curl -X POST https://localhost:9543/api-portal/api/v0.9/views/{viewId}/api-workflows \
-H 'Authorization: Bearer {access_token}' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d @payload.json

Creates an API workflow in the selected view. If id is omitted, the service generates one from the display name. ARAZZO content is parsed from JSON or YAML; invalid Arazzo content returns a bad request.

Payload

{
"displayName": "Weather onboarding",
"id": "weather-onboarding",
"description": "Guides users through the Weather API onboarding workflow.",
"contentType": "ARAZZO",
"apiWorkflowDefinition": {
"arazzo": "1.0.1",
"info": {
"title": "Weather onboarding",
"version": "1.0.0"
},
"workflows": []
}
}

Authentication​

This operation requires a Bearer JWT access token in the Authorization header. Required scopes (the token must carry at least one of): `dp:api_workflow:create`, `dp:api_workflow:manage`

Parameters​

NameInTypeRequiredDescription
bodybodyAPIWorkflowCreateRequesttrueAPI workflow creation payload. Use contentType ARAZZO for JSON/YAML workflow content or MD for Markdown workflow content.
viewIdpathstringtrueThe view's handle (unique per org). Not the internal database uuid.

Example responses

201 Response

{
"id": "workflow-12345",
"displayName": "Weather onboarding",
"status": "PUBLISHED"
}

400 Response

{
"message": "string"
}

Responses​

StatusMeaningDescriptionSchema
201CreatedCreated API workflow summary.APIWorkflowCreateResponse
400Bad RequestJSON message response.MessageResponse
409ConflictJSON message response.MessageResponse
500Internal Server ErrorJSON message response.MessageResponse

List API workflows​

GET /views/{viewId}/api-workflows

Code samples


curl -X GET https://localhost:9543/api-portal/api/v0.9/views/{viewId}/api-workflows \
-H 'Authorization: Bearer {access_token}' \
-H 'Accept: application/json'

Lists all API workflows for the selected organization view.

Authentication​

This operation requires a Bearer JWT access token in the Authorization header. Required scopes (the token must carry at least one of): `dp:api_workflow:read`, `dp:api_workflow:manage`

Parameters​

NameInTypeRequiredDescription
limitqueryintegerfalseMaximum number of records to return.
offsetqueryintegerfalseNumber of records to skip before returning results.
viewIdpathstringtrueThe view's handle (unique per org). Not the internal database uuid.

Example responses

200 Response

{
"list": [
{
"id": "workflow-12345",
"displayName": "Weather onboarding",
"description": "string",
"agentPrompt": "string",
"status": "PUBLISHED",
"agentVisibility": "VISIBLE",
"contentType": "ARAZZO",
"apiWorkflowDefinition": "string",
"markdownContent": "string",
"createdAt": "May 7, 2026",
"updatedAt": "string",
"createdBy": "string",
"updatedBy": "string"
}
],
"count": 1,
"pagination": {
"total": 42,
"limit": 20,
"offset": 0
}
}

Responses​

StatusMeaningDescriptionSchema
200OKList of API workflow DTOs.Inline
500Internal Server ErrorJSON message response.MessageResponse

Response schema​

Status Code 200

NameTypeRequiredRestrictionsDescription
» list[APIWorkflowResponse]falsenonenone
»» idstringfalsenoneThe workflow's handle (unique per org and view). Not the internal database uuid.
»» displayNamestringfalsenonenone
»» descriptionstringfalsenonenone
»» agentPromptstringfalsenonenone
»» statusstringfalsenonenone
»» agentVisibilitystringfalsenonenone
»» contentTypestringfalsenonenone
»» apiWorkflowDefinitionstring¦nullfalsenonenone
»» markdownContentstring¦nullfalsenonenone
»» createdAtstringfalsenonenone
»» updatedAtstring¦nullfalsenonenone
»» createdBystring¦nullfalsenonenone
»» updatedBystring¦nullfalsenonenone
» countintegerfalsenoneNumber of items returned in this page.
» paginationPaginationfalsenoneStandard pagination metadata returned with collection responses.
»» totalintegertruenoneTotal number of records matching the query.
»» limitintegertruenoneMaximum number of records returned in this response.
»» offsetintegertruenoneNumber of records skipped before this page.

Enumerated Values​

PropertyValue
statusDRAFT
statusPUBLISHED
agentVisibilityVISIBLE
agentVisibilityHIDDEN
contentTypeARAZZO
contentTypeMD

Get an API workflow​

GET /views/{viewId}/api-workflows/{apiWorkflowId}

Code samples


curl -X GET https://localhost:9543/api-portal/api/v0.9/views/{viewId}/api-workflows/{apiWorkflowId} \
-H 'Authorization: Bearer {access_token}' \
-H 'Accept: application/json'

Retrieves a single API workflow by ID from the selected view.

Authentication​

This operation requires a Bearer JWT access token in the Authorization header. Required scopes (the token must carry at least one of): `dp:api_workflow:read`, `dp:api_workflow:manage`

Parameters​

NameInTypeRequiredDescription
viewIdpathstringtrueThe view's handle (unique per org). Not the internal database uuid.
apiWorkflowIdpathstringtrueThe API workflow's handle (unique per org and view).

Example responses

200 Response

{
"id": "workflow-12345",
"displayName": "Weather onboarding",
"description": "Guides users through the Weather API onboarding workflow.",
"agentPrompt": "Follow this workflow to onboard a Weather API user.",
"status": "PUBLISHED",
"agentVisibility": "VISIBLE",
"contentType": "ARAZZO",
"apiWorkflowDefinition": "{\"arazzo\":\"1.0.1\",\"info\":{\"title\":\"Weather onboarding\",\"version\":\"1.0.0\"},\"workflows\":[]}",
"markdownContent": null,
"createdAt": "May 7, 2026",
"updatedAt": "2026-05-07T08:30:00Z"
}

404 Response

{
"message": "string"
}

Responses​

StatusMeaningDescriptionSchema
200OKAPI workflow DTO.APIWorkflowResponse
404Not FoundJSON message response.MessageResponse
500Internal Server ErrorJSON message response.MessageResponse

Update an API workflow​

PUT /views/{viewId}/api-workflows/{apiWorkflowId}

Code samples


curl -X PUT https://localhost:9543/api-portal/api/v0.9/views/{viewId}/api-workflows/{apiWorkflowId} \
-H 'Authorization: Bearer {access_token}' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d @payload.json

Updates API workflow metadata and content for the selected view. Duplicate handles return a conflict.

Payload

{
"displayName": "Weather onboarding v2",
"id": "weather-onboarding-v2",
"description": "Updated Weather API onboarding workflow.",
"agentPrompt": "string",
"status": "PUBLISHED",
"agentVisibility": "VISIBLE",
"contentType": "ARAZZO",
"apiWorkflowDefinition": {},
"markdownContent": "string"
}

Authentication​

This operation requires a Bearer JWT access token in the Authorization header. Required scopes (the token must carry at least one of): `dp:api_workflow:update`, `dp:api_workflow:manage`

Parameters​

NameInTypeRequiredDescription
bodybodyAPIWorkflowUpdateRequesttrueAPI workflow update payload. Include only the fields that should change.
viewIdpathstringtrueThe view's handle (unique per org). Not the internal database uuid.
apiWorkflowIdpathstringtrueThe API workflow's handle (unique per org and view).

Example responses

200 Response

{
"message": "string"
}

Responses​

StatusMeaningDescriptionSchema
200OKJSON message response.MessageResponse
400Bad RequestJSON message response.MessageResponse
404Not FoundJSON message response.MessageResponse
409ConflictJSON message response.MessageResponse
500Internal Server ErrorJSON message response.MessageResponse

Delete an API workflow​

DELETE /views/{viewId}/api-workflows/{apiWorkflowId}

Code samples


curl -X DELETE https://localhost:9543/api-portal/api/v0.9/views/{viewId}/api-workflows/{apiWorkflowId} \
-H 'Authorization: Bearer {access_token}' \
-H 'Accept: application/json'

Deletes an API workflow from the selected view.

Authentication​

This operation requires a Bearer JWT access token in the Authorization header. Required scopes (the token must carry at least one of): `dp:api_workflow:delete`, `dp:api_workflow:manage`

Parameters​

NameInTypeRequiredDescription
viewIdpathstringtrueThe view's handle (unique per org). Not the internal database uuid.
apiWorkflowIdpathstringtrueThe API workflow's handle (unique per org and view).

Example responses

200 Response

{
"message": "string"
}

Responses​

StatusMeaningDescriptionSchema
200OKJSON message response.MessageResponse
404Not FoundJSON message response.MessageResponse
500Internal Server ErrorJSON message response.MessageResponse

Generate an API workflow agent prompt​

POST /views/{viewId}/api-workflows/generate-prompt

Code samples


curl -X POST https://localhost:9543/api-portal/api/v0.9/views/{viewId}/api-workflows/generate-prompt \
-H 'Authorization: Bearer {access_token}' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d @payload.json

Generates the default agent prompt text for a proposed API workflow using the supplied name, description, APIs, and view context.

Payload

{
"displayName": "Weather onboarding",
"description": "Guides users through the Weather API onboarding workflow.",
"apis": [
{}
],
"orgHandle": "acme",
"viewName": "default",
"id": "weather-onboarding"
}

Authentication​

This operation requires a Bearer JWT access token in the Authorization header. Required scopes (the token must carry at least one of): `dp:api_workflow:create`, `dp:api_workflow:manage`

Parameters​

NameInTypeRequiredDescription
bodybodyAPIWorkflowPromptRequesttrueAPI workflow prompt-generation payload.
viewIdpathstringtrueThe view's handle (unique per org). Not the internal database uuid.

Example responses

200 Response

{
"agentPrompt": "You are an API workflow assistant. Help the user complete Weather onboarding."
}

500 Response

{
"message": "string"
}

Responses​

StatusMeaningDescriptionSchema
200OKGenerated API workflow agent prompt.APIWorkflowPromptResponse
500Internal Server ErrorJSON message response.MessageResponse

Was this page helpful?