Decuga public API

API reference, version 1.0

The routes meant for your own code: manage a project's tasks, sync its service desk companies, customers and their custom fields, sign your own customers in to the helpdesk portal, and let a deploy pipeline report a change request's status.

Plan. Business and above.

Errors. An error is a JSON object, {"error": "..."}.

Authentication

Create a project API key under Integrations, API Keys, and send it as Authorization: Bearer dck_.... A key belongs to one project and acts as the person who created it, so it can do what they can do.

Rate limit

The API allows 60 requests a minute for each key and 600 for a project. Over it is a 429 with Retry-After; every answer carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset.

Tasks

List, read, create, update, move and delete a project's tasks, and read and add comments on them. A task is addressed by its id or its code (for example DT-12).

GET/api/v1/projects/{projectId}/tasks

List tasks

The project's backlog, or one sprint's or section's tasks. Paged: 50 a page unless size says otherwise, at most 200.

Parameters

NameInTypeDescription
projectId *pathstring (uuid)The project's id.
sprintIdquerystring (uuid)Only this sprint's tasks.
sectionIdquerystring (uuid)Only this section's tasks (inside the sprint if one is also given).
stagequerystringOnly tasks in this board stage (a stage id).
pagequeryintegerThe page, from 0.
sizequeryintegerTasks a page: 1 to 200, 50 if left out.

Responses

StatusMeaning
200OK
400The request is not valid: a missing field, or a rule the app also refuses.
401No API key, or one that is wrong or has been revoked.
403The key is for another project, the account is below the Business plan, or the key's person is not allowed to do this.
429Too many requests: over the key's or the project's limit for this minute. Wait Retry-After seconds.

Example

curl -X GET "https://decuga.com/api/v1/projects/$PROJECT_ID/tasks" \
  -H "Authorization: Bearer $DECUGA_API_KEY"
POST/api/v1/projects/{projectId}/tasks

Create a task

Needs a title. A task created without an assigneeId is left unassigned, so someone can pick it up; send assigneeId to assign it. Its reporter is shown as the key's name followed by (API).

Parameters

NameInTypeDescription
projectId *pathstring (uuid)The project's id.

Request body (JSON): TaskRequest

FieldTypeDescription
titlestringThe task's title. Required when creating; when updating, it cannot be empty.
descriptionstringThe description: plain text, or HTML.
stagestringThe id of a board stage. When creating, the project's first stage if left out.
prioritystringLOW, MEDIUM, HIGH or CRITICAL.One of: LOW, MEDIUM, HIGH, CRITICAL
assigneeIdstring (uuid)The person the task is assigned to. A task created without one is assigned to the person the API key belongs to.
clearAssigneebooleanUnassign the task.
sprintIdstring (uuid)The sprint to put the task in.
clearSprintbooleanTake the task out of its sprint.
sectionIdstring (uuid)The section to put the task in.
clearSectionbooleanTake the task out of its section.
epicIdstring (uuid)The epic to put the task in (Pro plan and above).
clearEpicbooleanTake the task out of its epic.
parentTaskIdstring (uuid)Make the task a sub-task of this task.
clearParentTaskbooleanDetach the task from its parent.
storyPointsintegerStory points.
clearStoryPointsbooleanRemove the story points.
effortEstimateintegerThe effort estimate, in hours.
clearEffortEstimatebooleanRemove the effort estimate.
dueDatestringThe due date, yyyy-MM-dd.
clearDueDatebooleanRemove the due date.
startDatestringThe start date, yyyy-MM-dd.
clearStartDatebooleanRemove the start date.
tagsarray of stringThe whole list of tags: it replaces the task's tags.

Responses

StatusMeaning
201The task that was created.
400The request is not valid: a missing field, or a rule the app also refuses.
401No API key, or one that is wrong or has been revoked.
403The key is for another project, the account is below the Business plan, or the key's person is not allowed to do this.
429Too many requests: over the key's or the project's limit for this minute. Wait Retry-After seconds.

Example

curl -X POST "https://decuga.com/api/v1/projects/$PROJECT_ID/tasks" \
  -H "Authorization: Bearer $DECUGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"title":"Fix the login redirect","priority":"HIGH","dueDate":"2026-12-01","tags":["bug"]}'
GET/api/v1/projects/{projectId}/tasks/{task}

Get a task

One task, by its id or its code.

Parameters

NameInTypeDescription
projectId *pathstring (uuid)The project's id.
task *pathstringThe task's id or its code, for example DT-12.

Responses

StatusMeaning
200OK
400The request is not valid: a missing field, or a rule the app also refuses.
401No API key, or one that is wrong or has been revoked.
403The key is for another project, the account is below the Business plan, or the key's person is not allowed to do this.
404No such task in this project.
429Too many requests: over the key's or the project's limit for this minute. Wait Retry-After seconds.

Example

curl -X GET "https://decuga.com/api/v1/projects/$PROJECT_ID/tasks/DT-12" \
  -H "Authorization: Bearer $DECUGA_API_KEY"
PATCH/api/v1/projects/{projectId}/tasks/{task}

Update a task

A partial update: fields left out stay as they are, and each clear... flag empties its field. A task that is Done is read-only.

Parameters

NameInTypeDescription
projectId *pathstring (uuid)The project's id.
task *pathstringThe task's id or its code, for example DT-12.

Request body (JSON): TaskRequest

FieldTypeDescription
titlestringThe task's title. Required when creating; when updating, it cannot be empty.
descriptionstringThe description: plain text, or HTML.
stagestringThe id of a board stage. When creating, the project's first stage if left out.
prioritystringLOW, MEDIUM, HIGH or CRITICAL.One of: LOW, MEDIUM, HIGH, CRITICAL
assigneeIdstring (uuid)The person the task is assigned to. A task created without one is assigned to the person the API key belongs to.
clearAssigneebooleanUnassign the task.
sprintIdstring (uuid)The sprint to put the task in.
clearSprintbooleanTake the task out of its sprint.
sectionIdstring (uuid)The section to put the task in.
clearSectionbooleanTake the task out of its section.
epicIdstring (uuid)The epic to put the task in (Pro plan and above).
clearEpicbooleanTake the task out of its epic.
parentTaskIdstring (uuid)Make the task a sub-task of this task.
clearParentTaskbooleanDetach the task from its parent.
storyPointsintegerStory points.
clearStoryPointsbooleanRemove the story points.
effortEstimateintegerThe effort estimate, in hours.
clearEffortEstimatebooleanRemove the effort estimate.
dueDatestringThe due date, yyyy-MM-dd.
clearDueDatebooleanRemove the due date.
startDatestringThe start date, yyyy-MM-dd.
clearStartDatebooleanRemove the start date.
tagsarray of stringThe whole list of tags: it replaces the task's tags.

Responses

StatusMeaning
200OK
400The request is not valid: a missing field, or a rule the app also refuses.
401No API key, or one that is wrong or has been revoked.
403The key is for another project, the account is below the Business plan, or the key's person is not allowed to do this.
404No such task in this project.
429Too many requests: over the key's or the project's limit for this minute. Wait Retry-After seconds.

Example

curl -X PATCH "https://decuga.com/api/v1/projects/$PROJECT_ID/tasks/DT-12" \
  -H "Authorization: Bearer $DECUGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"clearAssignee":true,"clearDueDate":true}'
DELETE/api/v1/projects/{projectId}/tasks/{task}

Delete a task

Answers 204 with no body.

Parameters

NameInTypeDescription
projectId *pathstring (uuid)The project's id.
task *pathstringThe task's id or its code, for example DT-12.

Responses

StatusMeaning
204The task was deleted.
400The request is not valid: a missing field, or a rule the app also refuses.
401No API key, or one that is wrong or has been revoked.
403The key is for another project, the account is below the Business plan, or the key's person is not allowed to do this.
404No such task in this project.
429Too many requests: over the key's or the project's limit for this minute. Wait Retry-After seconds.

Example

curl -X DELETE "https://decuga.com/api/v1/projects/$PROJECT_ID/tasks/DT-12" \
  -H "Authorization: Bearer $DECUGA_API_KEY"
GET/api/v1/projects/{projectId}/tasks/{task}/comments

List a task's comments

Oldest first.

Parameters

NameInTypeDescription
projectId *pathstring (uuid)The project's id.
task *pathstringThe task's id or its code, for example DT-12.

Responses

StatusMeaning
200OK
400The request is not valid: a missing field, or a rule the app also refuses.
401No API key, or one that is wrong or has been revoked.
403The key is for another project, the account is below the Business plan, or the key's person is not allowed to do this.
404No such task in this project.
429Too many requests: over the key's or the project's limit for this minute. Wait Retry-After seconds.

Example

curl -X GET "https://decuga.com/api/v1/projects/$PROJECT_ID/tasks/DT-12/comments" \
  -H "Authorization: Bearer $DECUGA_API_KEY"
POST/api/v1/projects/{projectId}/tasks/{task}/comments

Add a comment to a task

A plain-text comment, by the person the API key belongs to.

Parameters

NameInTypeDescription
projectId *pathstring (uuid)The project's id.
task *pathstringThe task's id or its code, for example DT-12.

Request body (JSON): CommentRequest

FieldTypeDescription
body *string
parentCommentIdstring (uuid)The comment this one answers, if any.

Responses

StatusMeaning
201The comment that was added.
400The request is not valid: a missing field, or a rule the app also refuses.
401No API key, or one that is wrong or has been revoked.
403The key is for another project, the account is below the Business plan, or the key's person is not allowed to do this.
404No such task in this project.
429Too many requests: over the key's or the project's limit for this minute. Wait Retry-After seconds.

Example

curl -X POST "https://decuga.com/api/v1/projects/$PROJECT_ID/tasks/DT-12/comments" \
  -H "Authorization: Bearer $DECUGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"body":"Deployed to staging in build 1432"}'
POST/api/v1/projects/{projectId}/tasks/{task}/move

Move a task

Move a task to another board stage, and optionally into a sprint or to a place in the stage. Needs a stage, a sprintId or removeFromSprint.

Parameters

NameInTypeDescription
projectId *pathstring (uuid)The project's id.
task *pathstringThe task's id or its code, for example DT-12.

Request body (JSON): MoveRequest

FieldTypeDescription
stagestringThe id of the stage to move to.
sprintIdstring (uuid)
positionintegerWhere in the stage, from 0.
removeFromSprintbooleanTake the task out of its sprint.

Responses

StatusMeaning
200OK
400The request is not valid: a missing field, or a rule the app also refuses.
401No API key, or one that is wrong or has been revoked.
403The key is for another project, the account is below the Business plan, or the key's person is not allowed to do this.
404No such task in this project.
429Too many requests: over the key's or the project's limit for this minute. Wait Retry-After seconds.

Example

curl -X POST "https://decuga.com/api/v1/projects/$PROJECT_ID/tasks/DT-12/move" \
  -H "Authorization: Bearer $DECUGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"stage":"IN_PROGRESS"}'
GET/api/v1/projects/{projectId}/tasks/{task}/subtasks

List a task's sub-tasks

Parameters

NameInTypeDescription
projectId *pathstring (uuid)The project's id.
task *pathstringThe task's id or its code, for example DT-12.

Responses

StatusMeaning
200OK
400The request is not valid: a missing field, or a rule the app also refuses.
401No API key, or one that is wrong or has been revoked.
403The key is for another project, the account is below the Business plan, or the key's person is not allowed to do this.
404No such task in this project.
429Too many requests: over the key's or the project's limit for this minute. Wait Retry-After seconds.

Example

curl -X GET "https://decuga.com/api/v1/projects/$PROJECT_ID/tasks/DT-12/subtasks" \
  -H "Authorization: Bearer $DECUGA_API_KEY"

Sprints

List a project's sprints with their status, and read one. A task is put in a sprint by sending that sprint's id as sprintId when it is created or moved.

GET/api/v1/projects/{projectId}/sprints

List sprints

The project's sprints, newest first, with their status (PLANNING, ACTIVE or COMPLETED). Not paged: one call returns at most 100 (limit asks for fewer), the newest. Send status to get only those in one status, so ?status=ACTIVE finds the sprint to put new tasks in. It is a list because a project made from the Marketing or HR template can have several active at once; an empty list means none is.

Parameters

NameInTypeDescription
projectId *pathstring (uuid)The project's id.
statusquerystringOnly sprints in this status: PLANNING, ACTIVE or COMPLETED (any case). Leave out for all of them.
limitqueryintegerSprints to return: 1 to 100, the newest first; 100 if left out.

Responses

StatusMeaning
200OK
400The request is not valid: a missing field, or a rule the app also refuses.
401No API key, or one that is wrong or has been revoked.
403The key is for another project, the account is below the Business plan, or the key's person is not allowed to do this.
429Too many requests: over the key's or the project's limit for this minute. Wait Retry-After seconds.

Example

curl -X GET "https://decuga.com/api/v1/projects/$PROJECT_ID/sprints" \
  -H "Authorization: Bearer $DECUGA_API_KEY"
GET/api/v1/projects/{projectId}/sprints/{sprint}

Get a sprint

One sprint, by its id.

Parameters

NameInTypeDescription
projectId *pathstring (uuid)The project's id.
sprint *pathstring (uuid)The sprint's id.

Responses

StatusMeaning
200OK
400The request is not valid: a missing field, or a rule the app also refuses.
401No API key, or one that is wrong or has been revoked.
403The key is for another project, the account is below the Business plan, or the key's person is not allowed to do this.
404No such sprint in this project.
429Too many requests: over the key's or the project's limit for this minute. Wait Retry-After seconds.

Example

curl -X GET "https://decuga.com/api/v1/projects/$PROJECT_ID/sprints/{sprint}" \
  -H "Authorization: Bearer $DECUGA_API_KEY"

Companies

The service desk's companies and their custom fields, for syncing them from your own systems. A company can be found by your own id (externalId), so a sync can repeat a call without making a second company.

GET/api/v1/projects/{projectId}/companies

List companies

The project's companies, 50 a page unless limit says otherwise (at most 100). Pages are reached by cursor: leave cursor out for the first page, then pass the nextCursor of a page to get the next one. By name unless a filter is given. At most one filter at a time (name, domain, externalId or updatedSince); combining them is refused with 400. With updatedSince the oldest change comes first, so a sync can read on from where it stopped.

Parameters

NameInTypeDescription
projectId *pathstring (uuid)The project's id.
namequerystringCompanies whose name starts with this text, ignoring case.
domainquerystringThe company with this email domain.
externalIdquerystringThe company with this external id.
updatedSincequerystringOnly companies changed at or after this time, for example 2026-11-21T10:00:00Z, or a date such as 2026-11-21. Oldest change first.
cursorquerystringWhere the page starts: the nextCursor (or prevCursor) of the page before. Leave out for the first page.
limitqueryintegerCompanies a page: 1 to 100, 50 if left out.

Responses

StatusMeaning
200OK
400The request is not valid: a missing field, or a rule the app also refuses.
401No API key, or one that is wrong or has been revoked.
403The key is for another project, the account is below the Business plan, or the key's person is not allowed to do this.
429Too many requests: over the key's or the project's limit for this minute. Wait Retry-After seconds.

Example

curl -X GET "https://decuga.com/api/v1/projects/$PROJECT_ID/companies" \
  -H "Authorization: Bearer $DECUGA_API_KEY"
POST/api/v1/projects/{projectId}/companies

Create a company

Needs a name. A domain or external id that another company already has is refused with 409. Custom field values are sent by field name; see List company fields.

Parameters

NameInTypeDescription
projectId *pathstring (uuid)The project's id.

Request body (JSON): CompanyRequest

FieldTypeDescription
namestringThe company's name. Required when creating; when updating, it cannot be empty.
domainstringThe email domain used to match customers to the company, for example acme.com. Unique in the project; an empty value clears it.
externalIdstringYour own id for the company in your systems, so the same call can be repeated safely. Unique in the project; an empty value clears it. With PUT /companies/external/{externalId} it is taken from the path.
customFieldsobjectCustom field values, by the field's name (or its id). Fields left out keep their value; an empty value clears one. See GET /company-fields.
emailsarray of stringThe addresses the company is emailed at. At least one is required when creating. When updating, the list you send replaces the list kept; leave it out to keep it.
emailOptOutbooleanTrue to stop all emails to this company, false to allow them again. Leave out to keep it.

Responses

StatusMeaning
201The company that was created.
400The request is not valid: a missing field, or a rule the app also refuses.
401No API key, or one that is wrong or has been revoked.
403The key is for another project, the account is below the Business plan, or the key's person is not allowed to do this.
409The domain or external id already belongs to another company.
429Too many requests: over the key's or the project's limit for this minute. Wait Retry-After seconds.

Example

curl -X POST "https://decuga.com/api/v1/projects/$PROJECT_ID/companies" \
  -H "Authorization: Bearer $DECUGA_API_KEY"
GET/api/v1/projects/{projectId}/companies/external/{externalId}

Get a company by your own id

One company, by the external id you gave it (the same id the create-or-update call uses). Answers 404 when no company has it.

Parameters

NameInTypeDescription
projectId *pathstring (uuid)The project's id.
externalId *pathstringYour own id for the company.

Responses

StatusMeaning
200OK
400The request is not valid: a missing field, or a rule the app also refuses.
401No API key, or one that is wrong or has been revoked.
403The key is for another project, the account is below the Business plan, or the key's person is not allowed to do this.
404No company in this project has that external id.
429Too many requests: over the key's or the project's limit for this minute. Wait Retry-After seconds.

Example

curl -X GET "https://decuga.com/api/v1/projects/$PROJECT_ID/companies/external/{externalId}" \
  -H "Authorization: Bearer $DECUGA_API_KEY"
PUT/api/v1/projects/{projectId}/companies/external/{externalId}

Create or update a company by your own id

Makes the company with this external id match the request: updates it if there is one, creates it if there is not (a name is then required). Sending the same call again changes nothing more, so it is safe to repeat or retry. Answers 201 when it created the company and 200 when it updated one.

Parameters

NameInTypeDescription
projectId *pathstring (uuid)The project's id.
externalId *pathstringYour own id for the company.

Request body (JSON): CompanyRequest

FieldTypeDescription
namestringThe company's name. Required when creating; when updating, it cannot be empty.
domainstringThe email domain used to match customers to the company, for example acme.com. Unique in the project; an empty value clears it.
externalIdstringYour own id for the company in your systems, so the same call can be repeated safely. Unique in the project; an empty value clears it. With PUT /companies/external/{externalId} it is taken from the path.
customFieldsobjectCustom field values, by the field's name (or its id). Fields left out keep their value; an empty value clears one. See GET /company-fields.
emailsarray of stringThe addresses the company is emailed at. At least one is required when creating. When updating, the list you send replaces the list kept; leave it out to keep it.
emailOptOutbooleanTrue to stop all emails to this company, false to allow them again. Leave out to keep it.

Responses

StatusMeaning
200The company that was updated.
201The company that was created.
400The request is not valid: a missing field, or a rule the app also refuses.
401No API key, or one that is wrong or has been revoked.
403The key is for another project, the account is below the Business plan, or the key's person is not allowed to do this.
409The domain or external id already belongs to another company.
429Too many requests: over the key's or the project's limit for this minute. Wait Retry-After seconds.

Example

curl -X PUT "https://decuga.com/api/v1/projects/$PROJECT_ID/companies/external/{externalId}" \
  -H "Authorization: Bearer $DECUGA_API_KEY"
GET/api/v1/projects/{projectId}/companies/{company}

Get a company

One company, by its id.

Parameters

NameInTypeDescription
projectId *pathstring (uuid)The project's id.
company *pathstring (uuid)The company's id.

Responses

StatusMeaning
200OK
400The request is not valid: a missing field, or a rule the app also refuses.
401No API key, or one that is wrong or has been revoked.
403The key is for another project, the account is below the Business plan, or the key's person is not allowed to do this.
404No such company in this project.
429Too many requests: over the key's or the project's limit for this minute. Wait Retry-After seconds.

Example

curl -X GET "https://decuga.com/api/v1/projects/$PROJECT_ID/companies/{company}" \
  -H "Authorization: Bearer $DECUGA_API_KEY"
PATCH/api/v1/projects/{projectId}/companies/{company}

Update a company

A partial update: fields left out stay as they are, an empty domain, externalId or custom field value clears it.

Parameters

NameInTypeDescription
projectId *pathstring (uuid)The project's id.
company *pathstring (uuid)The company's id.

Request body (JSON): CompanyRequest

FieldTypeDescription
namestringThe company's name. Required when creating; when updating, it cannot be empty.
domainstringThe email domain used to match customers to the company, for example acme.com. Unique in the project; an empty value clears it.
externalIdstringYour own id for the company in your systems, so the same call can be repeated safely. Unique in the project; an empty value clears it. With PUT /companies/external/{externalId} it is taken from the path.
customFieldsobjectCustom field values, by the field's name (or its id). Fields left out keep their value; an empty value clears one. See GET /company-fields.
emailsarray of stringThe addresses the company is emailed at. At least one is required when creating. When updating, the list you send replaces the list kept; leave it out to keep it.
emailOptOutbooleanTrue to stop all emails to this company, false to allow them again. Leave out to keep it.

Responses

StatusMeaning
200OK
400The request is not valid: a missing field, or a rule the app also refuses.
401No API key, or one that is wrong or has been revoked.
403The key is for another project, the account is below the Business plan, or the key's person is not allowed to do this.
404No such company in this project.
409The domain or external id already belongs to another company.
429Too many requests: over the key's or the project's limit for this minute. Wait Retry-After seconds.

Example

curl -X PATCH "https://decuga.com/api/v1/projects/$PROJECT_ID/companies/{company}" \
  -H "Authorization: Bearer $DECUGA_API_KEY"
GET/api/v1/projects/{projectId}/company-fields

List company fields

The custom fields a company can have a value for: the name is the key of the value in customFields, and the type says what form the value takes.

Parameters

NameInTypeDescription
projectId *pathstring (uuid)The project's id.

Responses

StatusMeaning
200OK
400The request is not valid: a missing field, or a rule the app also refuses.
401No API key, or one that is wrong or has been revoked.
403The key is for another project, the account is below the Business plan, or the key's person is not allowed to do this.
429Too many requests: over the key's or the project's limit for this minute. Wait Retry-After seconds.

Example

curl -X GET "https://decuga.com/api/v1/projects/$PROJECT_ID/company-fields" \
  -H "Authorization: Bearer $DECUGA_API_KEY"

Customers

The service desk's customers (the people who raise tickets) and their custom fields, for syncing them from your own systems. A customer can be found by your own id (externalId), so a sync can repeat a call without making a second customer.

GET/api/v1/projects/{projectId}/customer-fields

List customer fields

The custom fields a customer can have a value for: the name is the key of the value in customFields, and the type says what form the value takes.

Parameters

NameInTypeDescription
projectId *pathstring (uuid)The project's id.

Responses

StatusMeaning
200OK
400The request is not valid: a missing field, or a rule the app also refuses.
401No API key, or one that is wrong or has been revoked.
403The key is for another project, the account is below the Business plan, or the key's person is not allowed to do this.
429Too many requests: over the key's or the project's limit for this minute. Wait Retry-After seconds.

Example

curl -X GET "https://decuga.com/api/v1/projects/$PROJECT_ID/customer-fields" \
  -H "Authorization: Bearer $DECUGA_API_KEY"
GET/api/v1/projects/{projectId}/customers

List customers

The project's customers, 50 a page unless limit says otherwise (at most 100). Pages are reached by cursor: leave cursor out for the first page, then pass the nextCursor of a page to get the next one. By name unless a filter is given. At most one filter at a time (name, email, externalId or updatedSince); combining them is refused with 400. With updatedSince the oldest change comes first, so a sync can read on from where it stopped.

Parameters

NameInTypeDescription
projectId *pathstring (uuid)The project's id.
namequerystringCustomers whose name starts with this text, ignoring case.
emailquerystringThe customer with this email address, ignoring case.
externalIdquerystringThe customer with this external id.
updatedSincequerystringOnly customers changed at or after this time, for example 2026-11-21T10:00:00Z, or a date such as 2026-11-21. Oldest change first.
cursorquerystringWhere the page starts: the nextCursor (or prevCursor) of the page before. Leave out for the first page.
limitqueryintegerCustomers a page: 1 to 100, 50 if left out.

Responses

StatusMeaning
200OK
400The request is not valid: a missing field, or a rule the app also refuses.
401No API key, or one that is wrong or has been revoked.
403The key is for another project, the account is below the Business plan, or the key's person is not allowed to do this.
429Too many requests: over the key's or the project's limit for this minute. Wait Retry-After seconds.

Example

curl -X GET "https://decuga.com/api/v1/projects/$PROJECT_ID/customers" \
  -H "Authorization: Bearer $DECUGA_API_KEY"
POST/api/v1/projects/{projectId}/customers

Create a customer

Needs a name and an email address. An email address or external id that another customer already has is refused with 409. The company is given by companyId or by companyExternalId. Custom field values are sent by field name; see List customer fields.

Parameters

NameInTypeDescription
projectId *pathstring (uuid)The project's id.

Request body (JSON): CustomerRequest

FieldTypeDescription
namestringThe customer's name. Required when creating; when updating, it cannot be empty.
emailstringThe customer's email address. Required when creating. Unique in the project.
phonestringThe customer's phone number. An empty value clears it.
externalIdstringYour own id for the person in your systems, so the same call can be repeated safely. Unique in the project; an empty value clears it. With PUT /customers/external/{externalId} it is the id in the path and may be left out.
companyIdstringThe id of the company the customer belongs to. An empty value takes the customer out of its company. Leave out to keep it. Do not send it together with companyExternalId.
companyExternalIdstringThe external id of the company the customer belongs to, as the Companies API knows it. An empty value takes the customer out of its company. Leave out to keep it. Do not send it together with companyId.
emailOptOutbooleanTrue to stop all emails to this customer, false to allow them again. Leave out to keep it.
customFieldsobjectCustom field values, by the field's name (or its id). Fields left out keep their value; an empty value clears one. See GET /customer-fields.

Responses

StatusMeaning
201The customer that was created.
400The request is not valid: a missing field, or a rule the app also refuses.
401No API key, or one that is wrong or has been revoked.
403The key is for another project, the account is below the Business plan, or the key's person is not allowed to do this.
409The email address or external id already belongs to another customer.
429Too many requests: over the key's or the project's limit for this minute. Wait Retry-After seconds.

Example

curl -X POST "https://decuga.com/api/v1/projects/$PROJECT_ID/customers" \
  -H "Authorization: Bearer $DECUGA_API_KEY"
PUT/api/v1/projects/{projectId}/customers/external/{externalId}

Create or update a customer by your own id

Makes the customer with this external id match the request: updates it if there is one, creates it if there is not (a name and an email address are then required). Sending the same call again changes nothing more, so it is safe to repeat or retry. Answers 201 when it created the customer and 200 when it updated one. A customer is found by the external id first; when none has it, the customer with the request's email address is taken instead if it has no external id yet, and is given this one. A customer that already has a different external id is refused with 409.

Parameters

NameInTypeDescription
projectId *pathstring (uuid)The project's id.
externalId *pathstringYour own id for the customer.

Request body (JSON): CustomerRequest

FieldTypeDescription
namestringThe customer's name. Required when creating; when updating, it cannot be empty.
emailstringThe customer's email address. Required when creating. Unique in the project.
phonestringThe customer's phone number. An empty value clears it.
externalIdstringYour own id for the person in your systems, so the same call can be repeated safely. Unique in the project; an empty value clears it. With PUT /customers/external/{externalId} it is the id in the path and may be left out.
companyIdstringThe id of the company the customer belongs to. An empty value takes the customer out of its company. Leave out to keep it. Do not send it together with companyExternalId.
companyExternalIdstringThe external id of the company the customer belongs to, as the Companies API knows it. An empty value takes the customer out of its company. Leave out to keep it. Do not send it together with companyId.
emailOptOutbooleanTrue to stop all emails to this customer, false to allow them again. Leave out to keep it.
customFieldsobjectCustom field values, by the field's name (or its id). Fields left out keep their value; an empty value clears one. See GET /customer-fields.

Responses

StatusMeaning
200The customer that was updated.
201The customer that was created.
400The request is not valid: a missing field, or a rule the app also refuses.
401No API key, or one that is wrong or has been revoked.
403The key is for another project, the account is below the Business plan, or the key's person is not allowed to do this.
409The email address or external id already belongs to another customer.
429Too many requests: over the key's or the project's limit for this minute. Wait Retry-After seconds.

Example

curl -X PUT "https://decuga.com/api/v1/projects/$PROJECT_ID/customers/external/{externalId}" \
  -H "Authorization: Bearer $DECUGA_API_KEY"
GET/api/v1/projects/{projectId}/customers/{customer}

Get a customer

One customer, by its id.

Parameters

NameInTypeDescription
projectId *pathstring (uuid)The project's id.
customer *pathstring (uuid)The customer's id.

Responses

StatusMeaning
200OK
400The request is not valid: a missing field, or a rule the app also refuses.
401No API key, or one that is wrong or has been revoked.
403The key is for another project, the account is below the Business plan, or the key's person is not allowed to do this.
404No such customer in this project.
429Too many requests: over the key's or the project's limit for this minute. Wait Retry-After seconds.

Example

curl -X GET "https://decuga.com/api/v1/projects/$PROJECT_ID/customers/{customer}" \
  -H "Authorization: Bearer $DECUGA_API_KEY"
PATCH/api/v1/projects/{projectId}/customers/{customer}

Update a customer

A partial update: fields left out stay as they are, an empty phone, externalId, company or custom field value clears it.

Parameters

NameInTypeDescription
projectId *pathstring (uuid)The project's id.
customer *pathstring (uuid)The customer's id.

Request body (JSON): CustomerRequest

FieldTypeDescription
namestringThe customer's name. Required when creating; when updating, it cannot be empty.
emailstringThe customer's email address. Required when creating. Unique in the project.
phonestringThe customer's phone number. An empty value clears it.
externalIdstringYour own id for the person in your systems, so the same call can be repeated safely. Unique in the project; an empty value clears it. With PUT /customers/external/{externalId} it is the id in the path and may be left out.
companyIdstringThe id of the company the customer belongs to. An empty value takes the customer out of its company. Leave out to keep it. Do not send it together with companyExternalId.
companyExternalIdstringThe external id of the company the customer belongs to, as the Companies API knows it. An empty value takes the customer out of its company. Leave out to keep it. Do not send it together with companyId.
emailOptOutbooleanTrue to stop all emails to this customer, false to allow them again. Leave out to keep it.
customFieldsobjectCustom field values, by the field's name (or its id). Fields left out keep their value; an empty value clears one. See GET /customer-fields.

Responses

StatusMeaning
200OK
400The request is not valid: a missing field, or a rule the app also refuses.
401No API key, or one that is wrong or has been revoked.
403The key is for another project, the account is below the Business plan, or the key's person is not allowed to do this.
404No such customer in this project.
409The email address or external id already belongs to another customer.
429Too many requests: over the key's or the project's limit for this minute. Wait Retry-After seconds.

Example

curl -X PATCH "https://decuga.com/api/v1/projects/$PROJECT_ID/customers/{customer}" \
  -H "Authorization: Bearer $DECUGA_API_KEY"

Helpdesk sessions

Sign your own customers in to the helpdesk portal without an emailed code. Your server asks for a session for a person it already knows, and gives it to their browser, where the SDK uses it. Call this from your server only: the API key must never reach a browser.

POST/api/v1/projects/{projectId}/customer-sessions

Sign a customer in to the helpdesk portal

Returns a helpdesk session for one person, with no emailed code. Send their email (required), their name (used only for a new customer) and, to put them in a company, your own id for it (companyExternalId, the externalId of a company). The person is found by their email, or made a customer of the project if they are new. The session is the same as the one a customer gets by entering a code: it lasts 30 days, and it lets them send requests, see their own and their company's, reply and attach files, and nothing more. Pass the whole response to the browser and give it to the SDK. Call this from your server only: the API key must never be in a browser, and the token in the response is a secret of that one person. The key's owner needs permission to manage the service desk.

Parameters

NameInTypeDescription
projectId *pathstring (uuid)The project's id.

Request body (JSON): CustomerSessionRequest

FieldTypeDescription
email *stringThe person's email address. Required. They are found by it, or made a customer of the project if they are new.
namestringTheir name, used only when the customer is new. A customer who already exists keeps the name your team gave them.
companyExternalIdstringYour own id of the company they belong to (the externalId of a company), so they see that company's requests. When it is given, it decides the company, even if the email's domain matches another. Leave out to keep whatever company they already have.

Responses

StatusMeaning
201The session.
400The request is not valid: a missing field, or a rule the app also refuses.
401No API key, or one that is wrong or has been revoked.
403The key is for another project, the account is below the Business plan, or the key's person is not allowed to do this.
404No company has the external id that was sent as companyExternalId.
429Too many requests: over the key's or the project's limit for this minute. Wait Retry-After seconds.

Example

curl -X POST "https://decuga.com/api/v1/projects/$PROJECT_ID/customer-sessions" \
  -H "Authorization: Bearer $DECUGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"email":"[email protected]","name":"Meera Rao","companyExternalId":"globex-1042"}'

Change requests

PATCH/api/projects/{projectId}/changes/{changeId}/status

Set a change request's status

For a deploy pipeline to report where a change request is: IN_PROGRESS when the deploy starts, COMPLETED when it succeeds, FAILED when it breaks, ROLLED_BACK after a rollback. The change is addressed by its id or its number (for example CHG-0001). Each call can carry a note and a url, which show in the change's history and in its Deploy and rollback box. Setting the status the change already has succeeds and changes nothing, so a pipeline can retry safely. Called with a project API key, the call is recorded as a pipeline action; the key needs the Business plan, like Change Management.

Parameters

NameInTypeDescription
projectId *pathstring (uuid)The project's id.
changeId *pathstringThe change request's id or its number, for example CHG-0001.

Request body (JSON): PatchChangeStatusDto

FieldTypeDescription
status *stringThe status to set. Only the pipeline's statuses are accepted. Allowed moves: APPROVED to IN_PROGRESS; IN_PROGRESS to COMPLETED, FAILED or ROLLED_BACK; FAILED to ROLLED_BACK. Setting the status the change already has succeeds and changes nothing, so a pipeline can retry safely.One of: IN_PROGRESS, COMPLETED, FAILED, ROLLED_BACK
notestringWhy, in plain words (for example the stage that failed and the reason). Shown in the change's history and as the status note in the change's Deploy and rollback box, whatever the status. For ROLLED_BACK it is the rollback reason instead.
urlstringA link to the build, deployment or logs. Must start with http:// or https://. Shown as View build in the history and as the link in the Deploy and rollback box.
systemRestoredbooleanFor ROLLED_BACK: whether the system is confirmed back to normal. A person must say; a pipeline may leave it out.

Responses

StatusMeaning
200OK
400The request is not valid: a missing field, or a rule the app also refuses.
401No API key, or one that is wrong or has been revoked.
403The key is for another project, the account is below the Business plan, or the key's person is not allowed to do this.
404No such change request in this project.
409That status cannot follow the change's current one.

Example

curl -X PATCH "https://decuga.com/api/projects/$PROJECT_ID/changes/CHG-0001/status" \
  -H "Authorization: Bearer $DECUGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"status":"FAILED","note":"Health check failed on 2 of 5 pods","url":"https://ci.example.com/build/42"}'

Objects

The shapes the endpoints above send and receive.

ChangeApproval

FieldTypeDescription
approverIdstring
approverNamestring
rolestring
typestring
decisionstring
commentstring
decidedAtstring
changeManagerApprovalboolean

ChangeRequestResponse

FieldTypeDescription
idstring (uuid)
projectIdstring (uuid)
accountIdstring (uuid)
createdByUserIdstring (uuid)
assigneeUserIdstring (uuid)
changeNumberstring
titlestring
descriptionstring
changeTypestringOne of: STANDARD, NORMAL, EMERGENCY
statusstringOne of: DRAFT, PENDING_APPROVAL, APPROVED, REJECTED, IN_PROGRESS, COMPLETED, FAILED, ROLLED_BACK
riskLevelstringOne of: LOW, MEDIUM, HIGH, CRITICAL
affectedSystemsarray of string
executionPlanstring
rollbackPlanstring
scheduledWindowStartstring
scheduledWindowEndstring
blastRadiusstring
affectedServicesarray of string
riskScoreinteger
approvalsarray of ChangeApproval
requiredApprovalsinteger
requiredChangeManagerApprovalsinteger
linkedTaskCodesarray of string
linkedTicketNumbersarray of string
releaseIdstring (uuid)
releaseLabelstring
reviewSuccessboolean
rollbackNeededboolean
lessonsLearnedstring
reviewNotesstring
reviewedAtstring (date-time)
templateIdstring (uuid)
createdAtstring (date-time)
updatedAtstring (date-time)
implementedAtstring (date-time)
startedAtstring (date-time)
finishedAtstring (date-time)
statusNotestring
statusUrlstring
rolledBackAtstring (date-time)
rolledBackByUserIdstring (uuid)
rolledBackBystring
rollbackReasonstring
systemRestoredboolean
rollbackOfChangeIdstring (uuid)
rollbackOfChangeNumberstring
rollbackChangeIdstring (uuid)
rollbackChangeNumberstring

Comment

FieldTypeDescription
idstring (uuid)The comment's id.
authorIdstring (uuid)The person who wrote it.
authorNamestringTheir name.
bodystringPlain text, or HTML when bodyFormat says so.
bodyFormatstringHTML for rich text, null for plain text.
parentCommentIdstring (uuid)The comment this one answers, if any.
resolvedbooleanWhether the comment has been marked resolved.
createdAtstring (date-time)When it was written (UTC).

CommentRequest

FieldTypeDescription
body *string
parentCommentIdstring (uuid)The comment this one answers, if any.

Company

FieldTypeDescription
idstring (uuid)The company's id.
externalIdstringYour own id for the company in your systems, if you gave one. Unique in the project.
namestringThe company's name.
domainstringThe email domain used to match customers to the company, in lower case, or null. Unique in the project.
customerCountintegerHow many customers belong to the company.
customFieldsobjectCustom field values by field name. Only fields that have a value are listed.
emailsarray of stringThe addresses the company is emailed at, in lower case. Empty only for a company created before addresses were kept.
emailOptOutbooleanTrue when the company asked not to be emailed.
createdAtstring (date-time)When the company was created (UTC).
updatedAtstring (date-time)When it last changed (UTC).

CompanyField

FieldTypeDescription
idstring (uuid)The field's id.
namestringThe field's name: the key of its value in a company's customFields.
typestringTEXT, NUMBER, DATE (yyyy-MM-dd), SELECT, MULTI_SELECT (options separated by commas), TAGS (any words separated by commas, up to 50 tags of 40 characters), CHECKBOX (true or false), URL, EMAIL, PHONE, CURRENCY, RATING (1 to 5) or PROGRESS (0 to 100).One of: TEXT, NUMBER, DATE, SELECT, CHECKBOX, URL, MULTI_SELECT, USER, RATING, EMAIL, PHONE, CURRENCY, PROGRESS, TAGS
optionsarray of stringThe allowed values of a SELECT or MULTI_SELECT field.
currencystringThe currency symbol of a CURRENCY field.
positionintegerThe field's place in the list, from 0.

CompanyRequest

FieldTypeDescription
namestringThe company's name. Required when creating; when updating, it cannot be empty.
domainstringThe email domain used to match customers to the company, for example acme.com. Unique in the project; an empty value clears it.
externalIdstringYour own id for the company in your systems, so the same call can be repeated safely. Unique in the project; an empty value clears it. With PUT /companies/external/{externalId} it is taken from the path.
customFieldsobjectCustom field values, by the field's name (or its id). Fields left out keep their value; an empty value clears one. See GET /company-fields.
emailsarray of stringThe addresses the company is emailed at. At least one is required when creating. When updating, the list you send replaces the list kept; leave it out to keep it.
emailOptOutbooleanTrue to stop all emails to this company, false to allow them again. Leave out to keep it.

CursorPageApiCompany

One page of a list, reached by cursor.

FieldTypeDescription
itemsarray of CompanyThe items on this page.
limitintegerHow many items a page holds at most: 1 to 100, 50 by default.
totalintegerHow many items match, over every page.
hasMorebooleanWhether another page follows this one.
nextCursorstringPass this as cursor to get the next page. Absent on the last page.
prevCursorstringPass this as cursor to get the page before this one. Absent on the first page.

CursorPageApiCustomer

One page of a list, reached by cursor.

FieldTypeDescription
itemsarray of CustomerThe items on this page.
limitintegerHow many items a page holds at most: 1 to 100, 50 by default.
totalintegerHow many items match, over every page.
hasMorebooleanWhether another page follows this one.
nextCursorstringPass this as cursor to get the next page. Absent on the last page.
prevCursorstringPass this as cursor to get the page before this one. Absent on the first page.

Customer

FieldTypeDescription
idstring (uuid)The customer's id.
externalIdstringYour own id for the person in your systems, if you gave one. Unique in the project.
namestringThe customer's name.
emailstringThe customer's email address, in lower case. Unique in the project.
phonestringThe customer's phone number, or null.
companyIdstring (uuid)The id of the company the customer belongs to, or null.
companyNamestringThe name of that company, or null.
emailOptOutbooleanTrue when the customer asked not to be emailed, or your team switched emails off for them.
customFieldsobjectCustom field values by field name. Only fields that have a value are listed.
createdAtstring (date-time)When the customer was created (UTC).
updatedAtstring (date-time)When it last changed (UTC).

CustomerField

FieldTypeDescription
idstring (uuid)The field's id.
namestringThe field's name: the key of its value in a customer's customFields.
typestringTEXT, NUMBER, DATE (yyyy-MM-dd), SELECT, MULTI_SELECT (options separated by commas), TAGS (any words separated by commas, up to 50 tags of 40 characters), CHECKBOX (true or false), URL, EMAIL, PHONE, CURRENCY, RATING (1 to 5) or PROGRESS (0 to 100).One of: TEXT, NUMBER, DATE, SELECT, CHECKBOX, URL, MULTI_SELECT, USER, RATING, EMAIL, PHONE, CURRENCY, PROGRESS, TAGS
optionsarray of stringThe allowed values of a SELECT or MULTI_SELECT field.
currencystringThe currency symbol of a CURRENCY field.
positionintegerThe field's place in the list, from 0.

CustomerRequest

FieldTypeDescription
namestringThe customer's name. Required when creating; when updating, it cannot be empty.
emailstringThe customer's email address. Required when creating. Unique in the project.
phonestringThe customer's phone number. An empty value clears it.
externalIdstringYour own id for the person in your systems, so the same call can be repeated safely. Unique in the project; an empty value clears it. With PUT /customers/external/{externalId} it is the id in the path and may be left out.
companyIdstringThe id of the company the customer belongs to. An empty value takes the customer out of its company. Leave out to keep it. Do not send it together with companyExternalId.
companyExternalIdstringThe external id of the company the customer belongs to, as the Companies API knows it. An empty value takes the customer out of its company. Leave out to keep it. Do not send it together with companyId.
emailOptOutbooleanTrue to stop all emails to this customer, false to allow them again. Leave out to keep it.
customFieldsobjectCustom field values, by the field's name (or its id). Fields left out keep their value; an empty value clears one. See GET /customer-fields.

CustomerSession

FieldTypeDescription
tokenstringThe session token. It acts as this one person in the helpdesk portal until it expires. Treat it as a secret: pass it to their browser and nowhere else.
expiresAtstring (date-time)When the token stops working. Ask for a new session before then.
emailstringThe person's email address, as Decuga keeps it (lower case).
namestringTheir name.
customerIdstring (uuid)Their customer id in the project.
companyIdstring (uuid)The company they belong to, if any.
companyNamestringThe company's name, if they belong to one.

CustomerSessionRequest

FieldTypeDescription
email *stringThe person's email address. Required. They are found by it, or made a customer of the project if they are new.
namestringTheir name, used only when the customer is new. A customer who already exists keeps the name your team gave them.
companyExternalIdstringYour own id of the company they belong to (the externalId of a company), so they see that company's requests. When it is given, it decides the company, even if the email's domain matches another. Leave out to keep whatever company they already have.

MoveRequest

FieldTypeDescription
stagestringThe id of the stage to move to.
sprintIdstring (uuid)
positionintegerWhere in the stage, from 0.
removeFromSprintbooleanTake the task out of its sprint.

Page of Task

One page of a list.

FieldTypeDescription
itemsarray of TaskThe items on this page.
pageintegerThis page, from 0.
sizeintegerHow many items a page holds: 1 to 200, 50 by default.
totalintegerHow many items there are in all, over every page.
hasMorebooleanWhether another page follows this one.

PatchChangeStatusDto

FieldTypeDescription
status *stringThe status to set. Only the pipeline's statuses are accepted. Allowed moves: APPROVED to IN_PROGRESS; IN_PROGRESS to COMPLETED, FAILED or ROLLED_BACK; FAILED to ROLLED_BACK. Setting the status the change already has succeeds and changes nothing, so a pipeline can retry safely.One of: IN_PROGRESS, COMPLETED, FAILED, ROLLED_BACK
notestringWhy, in plain words (for example the stage that failed and the reason). Shown in the change's history and as the status note in the change's Deploy and rollback box, whatever the status. For ROLLED_BACK it is the rollback reason instead.
urlstringA link to the build, deployment or logs. Must start with http:// or https://. Shown as View build in the history and as the link in the Deploy and rollback box.
systemRestoredbooleanFor ROLLED_BACK: whether the system is confirmed back to normal. A person must say; a pipeline may leave it out.

Sprint

FieldTypeDescription
idstring (uuid)The sprint's id: what a task's sprintId is set to.
namestringThe sprint's name.
goalstringThe sprint's goal, or null.
statusstringWhere the sprint is: PLANNING (made, not started), ACTIVE (running) or COMPLETED (finished).One of: PLANNING, ACTIVE, COMPLETED
startDatestring (date)The planned start (a date, no time), or null.
endDatestring (date)The planned end (a date, no time), or null.
velocityintegerThe story points finished in the sprint, worked out when it was completed; null until then.
createdAtstring (date-time)When the sprint was created (UTC).
completedAtstring (date-time)When it was completed (UTC); null while it is not, and for sprints completed before this was recorded.

Task

FieldTypeDescription
idstring (uuid)The task's id.
codestringThe task's code, for example DT-12.
titlestringThe title.
descriptionstringThe description: plain text, or HTML, as it was written.
stagestringThe id of the board stage the task is in.
statusstringNEW, IN_PROGRESS or DONE.One of: NEW, IN_PROGRESS, DONE
prioritystringLOW, MEDIUM, HIGH or CRITICAL.One of: LOW, MEDIUM, HIGH, CRITICAL
assigneeIdstring (uuid)The person the task is assigned to.
assigneeNamestringTheir name.
reporterIdstring (uuid)The person who created the task.
reporterNamestringTheir name.
sprintIdstring (uuid)The sprint the task is in.
sectionIdstring (uuid)The section the task is in.
epicIdstring (uuid)The epic the task is in.
parentTaskIdstring (uuid)The parent task, for a sub-task.
parentTaskCodestringThe parent task's code.
storyPointsintegerStory points.
effortEstimateintegerThe effort estimate, in hours.
dueDatestringThe due date, yyyy-MM-dd, or null.
startDatestringThe start date, yyyy-MM-dd, or null.
tagsarray of stringThe task's tags.
customFieldsobjectCustom field id to its value.
createdAtstring (date-time)When the task was created (UTC).
updatedAtstring (date-time)When it last changed (UTC).
completedAtstring (date-time)When it was completed; null if it has not been, or was reopened since.

TaskRequest

FieldTypeDescription
titlestringThe task's title. Required when creating; when updating, it cannot be empty.
descriptionstringThe description: plain text, or HTML.
stagestringThe id of a board stage. When creating, the project's first stage if left out.
prioritystringLOW, MEDIUM, HIGH or CRITICAL.One of: LOW, MEDIUM, HIGH, CRITICAL
assigneeIdstring (uuid)The person the task is assigned to. A task created without one is assigned to the person the API key belongs to.
clearAssigneebooleanUnassign the task.
sprintIdstring (uuid)The sprint to put the task in.
clearSprintbooleanTake the task out of its sprint.
sectionIdstring (uuid)The section to put the task in.
clearSectionbooleanTake the task out of its section.
epicIdstring (uuid)The epic to put the task in (Pro plan and above).
clearEpicbooleanTake the task out of its epic.
parentTaskIdstring (uuid)Make the task a sub-task of this task.
clearParentTaskbooleanDetach the task from its parent.
storyPointsintegerStory points.
clearStoryPointsbooleanRemove the story points.
effortEstimateintegerThe effort estimate, in hours.
clearEffortEstimatebooleanRemove the effort estimate.
dueDatestringThe due date, yyyy-MM-dd.
clearDueDatebooleanRemove the due date.
startDatestringThe start date, yyyy-MM-dd.
clearStartDatebooleanRemove the start date.
tagsarray of stringThe whole list of tags: it replaces the task's tags.