API by router
Workflow files
GET
HTTPBearerheader
AuthorizationBearer <token>include_superseded?Include SupersededDefault
falseX-Api-Key?string|nullSuccessful Response
application/json- response
[index: integer]?curl -X GET 'https://example.com/v1/workflow-files'Example Response
[ { "content": "string", "content_hash": "string", "created_at": "2019-08-24T14:15:22Z", "description": "string", "frontmatter": {}, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "signed_at": "2019-08-24T14:15:22Z", "signed_by": "string", "slug": "string", "status": "string", "superseded_by": "a99fa58d-1b9b-4688-ad5f-382f6b17ef46", "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0", "updated_at": "2019-08-24T14:15:22Z", "version": 0 }]POST
HTTPBearerheader
AuthorizationBearer <token>X-Api-Key?string|nullapplication/json- body
content*ContentFull workflow content (YAML frontmatter + Markdown body)
description?string|nullname*NameLength
length <= 200slug*SlugMatch
^[a-z0-9][a-z0-9_-]*$Length
length <= 100Successful Response
application/json- response
content?string|nullcontent_hash*Content Hashcreated_at*Created AtFormat
date-timedescription*string|nullfrontmatter*id*IdFormat
uuidname*Namesigned_at*|nullsigned_by*string|nullslug*Slugstatus*Statussuperseded_by*|nulltenant_id*Tenant IdFormat
uuidupdated_at*Updated AtFormat
date-timeversion*Versioncurl -X POST 'https://example.com/v1/workflow-files' \ -H 'Content-Type: application/json' \ -d '{ "content": "string", "name": "string", "slug": "string"}'Example Response
{ "content": "string", "content_hash": "string", "created_at": "2019-08-24T14:15:22Z", "description": "string", "frontmatter": {}, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "signed_at": "2019-08-24T14:15:22Z", "signed_by": "string", "slug": "string", "status": "string", "superseded_by": "a99fa58d-1b9b-4688-ad5f-382f6b17ef46", "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0", "updated_at": "2019-08-24T14:15:22Z", "version": 0}GET
HTTPBearerheader
AuthorizationBearer <token>workflow_id*Workflow IdFormat
uuidX-Api-Key?string|nullSuccessful Response
application/json- response
content?string|nullcontent_hash*Content Hashcreated_at*Created AtFormat
date-timedescription*string|nullfrontmatter*id*IdFormat
uuidname*Namesigned_at*|nullsigned_by*string|nullslug*Slugstatus*Statussuperseded_by*|nulltenant_id*Tenant IdFormat
uuidupdated_at*Updated AtFormat
date-timeversion*Versioncurl -X GET 'https://example.com/v1/workflow-files/497f6eca-6276-4993-bfeb-53cbbbba6f08'Example Response
{ "content": "string", "content_hash": "string", "created_at": "2019-08-24T14:15:22Z", "description": "string", "frontmatter": {}, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "signed_at": "2019-08-24T14:15:22Z", "signed_by": "string", "slug": "string", "status": "string", "superseded_by": "a99fa58d-1b9b-4688-ad5f-382f6b17ef46", "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0", "updated_at": "2019-08-24T14:15:22Z", "version": 0}DELETE
HTTPBearerheader
AuthorizationBearer <token>workflow_id*Workflow IdFormat
uuidX-Api-Key?string|nullSuccessful Response
curl -X DELETE 'https://example.com/v1/workflow-files/497f6eca-6276-4993-bfeb-53cbbbba6f08'Example Response
Empty
PUT
HTTPBearerheader
AuthorizationBearer <token>workflow_id*Workflow IdFormat
uuidX-Api-Key?string|nullapplication/json- body
content?string|nulldescription?string|nullname?string|nullSuccessful Response
application/json- response
content?string|nullcontent_hash*Content Hashcreated_at*Created AtFormat
date-timedescription*string|nullfrontmatter*id*IdFormat
uuidname*Namesigned_at*|nullsigned_by*string|nullslug*Slugstatus*Statussuperseded_by*|nulltenant_id*Tenant IdFormat
uuidupdated_at*Updated AtFormat
date-timeversion*Versioncurl -X PUT 'https://example.com/v1/workflow-files/497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
{ "content": "string", "content_hash": "string", "created_at": "2019-08-24T14:15:22Z", "description": "string", "frontmatter": {}, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "signed_at": "2019-08-24T14:15:22Z", "signed_by": "string", "slug": "string", "status": "string", "superseded_by": "a99fa58d-1b9b-4688-ad5f-382f6b17ef46", "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0", "updated_at": "2019-08-24T14:15:22Z", "version": 0}POST
HTTPBearerheader
AuthorizationBearer <token>workflow_id*Workflow IdFormat
uuidX-Api-Key?string|nullapplication/json- body
signer*SignerIdentity of the signer (tenant admin, Haldir)
Length
length <= 200Successful Response
application/json- response
content?string|nullcontent_hash*Content Hashcreated_at*Created AtFormat
date-timedescription*string|nullfrontmatter*id*IdFormat
uuidname*Namesigned_at*|nullsigned_by*string|nullslug*Slugstatus*Statussuperseded_by*|nulltenant_id*Tenant IdFormat
uuidupdated_at*Updated AtFormat
date-timeversion*Versioncurl -X POST 'https://example.com/v1/workflow-files/497f6eca-6276-4993-bfeb-53cbbbba6f08/activate' \ -H 'Content-Type: application/json' \ -d '{ "signer": "string"}'Example Response
{ "content": "string", "content_hash": "string", "created_at": "2019-08-24T14:15:22Z", "description": "string", "frontmatter": {}, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "signed_at": "2019-08-24T14:15:22Z", "signed_by": "string", "slug": "string", "status": "string", "superseded_by": "a99fa58d-1b9b-4688-ad5f-382f6b17ef46", "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0", "updated_at": "2019-08-24T14:15:22Z", "version": 0}POST
HTTPBearerheader
AuthorizationBearer <token>workflow_id*Workflow IdFormat
uuidX-Api-Key?string|nullapplication/json- body
content*ContentFull workflow content (YAML frontmatter + Markdown body)
description?string|nullname*NameLength
length <= 200slug*SlugMatch
^[a-z0-9][a-z0-9_-]*$Length
length <= 100Successful Response
application/json- response
content?string|nullcontent_hash*Content Hashcreated_at*Created AtFormat
date-timedescription*string|nullfrontmatter*id*IdFormat
uuidname*Namesigned_at*|nullsigned_by*string|nullslug*Slugstatus*Statussuperseded_by*|nulltenant_id*Tenant IdFormat
uuidupdated_at*Updated AtFormat
date-timeversion*Versioncurl -X POST 'https://example.com/v1/workflow-files/497f6eca-6276-4993-bfeb-53cbbbba6f08/new-version' \ -H 'Content-Type: application/json' \ -d '{ "content": "string", "name": "string", "slug": "string"}'Example Response
{ "content": "string", "content_hash": "string", "created_at": "2019-08-24T14:15:22Z", "description": "string", "frontmatter": {}, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "signed_at": "2019-08-24T14:15:22Z", "signed_by": "string", "slug": "string", "status": "string", "superseded_by": "a99fa58d-1b9b-4688-ad5f-382f6b17ef46", "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0", "updated_at": "2019-08-24T14:15:22Z", "version": 0}