Jobs
List, get, create and update jobs, and read, write, edit and delete their comments and job updates. Reads need Read, writes need Write.
Overview
GET /api/v1/jobs lists the jobs in your workspace, and GET /api/v1/jobs/{id} returns one of them. You get the jobs you can see in the app, minus any team your key's team access leaves out. Both need the Read permission. POST /api/v1/jobs creates a job and PATCH /api/v1/jobs/{id} changes one. Both need Write. GET /api/v1/jobs/{id}/comments and GET /api/v1/jobs/{id}/updates read what people wrote on a job, and need Read.
Authentication, Errors and Rate limits cover what every operation shares. This page covers the parameters and the fields.
Request
curl "https://attia.app/api/v1/jobs?limit=50" \ -H "Authorization: Bearer $ATTIA_API_KEY"All nine query parameters are optional.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
limit | integer, 1 to 100 | 25 | How many jobs to return |
cursor | string | none | The next_cursor of the previous page |
updated_since | RFC 3339 timestamp | none | Only jobs updated at or after this time |
include_archived | true or false | false | Also return archived jobs |
query | string | none | Only jobs whose title contains this text, in any case |
team | team id, name or identifier | none | Only jobs in this team or shared with it |
member | member id, name, email or me | none | Only jobs where this member is the job lead or one of the job members |
label | label id or name | none | Only jobs with this label. A label group takes every label in it |
order | oldest or newest | oldest | newest puts the latest change first |
A parameter outside this table gets a 400 with the code invalid-request. So does a parameter sent twice.
team, member and label take an id or a name. A name is matched in full, in any case, among the records your key can see, and me is the member who owns the key. A name that matches nothing gets a 400 with the code invalid-request on that parameter. An id that matches nothing gets an empty page. Each filter only narrows the list, so you never get a job your key could not read without it.
Response
The answer holds the jobs in data, sorted by updated_at and then id, oldest change first, or newest first with order=newest. next_cursor is a string when more jobs exist and null on the last page. has_next_page is true when another page follows.
{ "data": [ { "id": "0192f3a1-6b02-7d4c-8e11-5a9c0b7d3e01", "title": "Backend developer", "slug": "backend-developer", "status": "live", "publish_status": "published", "team_id": "0192f39f-11aa-7c3e-b2d4-9e8f7a6b5c4d", "employment_type": "full_time", "contract_type": "permanent", "workplace_type": "hybrid", "locations": ["Eksempelvik"], "positions_count": 2, "application_deadline": "2026-11-15", "target_hire_date": null, "published_at": "2026-09-28T07:30:00.000000Z", "closed_at": null, "archived_at": null, "created_at": "2026-09-25T12:04:51.220417Z", "updated_at": "2026-10-01T09:42:10.118305Z", "application_counts_by_status": [ { "status_id": "0192f3c7-5e21-7b4a-8c10-2d9e6f1a7b35", "name": "Interview", "category": "active", "count": 3 } ] } ], "next_cursor": null, "has_next_page": false}| Field | Type | Meaning |
|---|---|---|
id | UUID | The job's id. It never changes |
title | string | The job title |
slug | string | The job's name in its URL, unique in the workspace |
status | enum | draft, live, paused or closed. Whether candidates can apply, which the app calls Publish. See Job status |
publish_status | enum | unpublished, scheduled or published. The job's status in the app. A scheduled job goes out at its publish time, and an unpublished job with a closed_at was published before |
team_id | UUID | The team that owns the job |
employment_type | enum | full_time or part_time |
contract_type | enum | permanent, temporary, fixed_contract, seasonal, project, trainee, apprenticeship, self_employed or agency |
workplace_type | enum | remote, hybrid or onsite |
locations | list of strings | The places the job names. Empty when it names none |
positions_count | integer | How many people the job hires, at least 1 |
application_deadline | date or null | The last day to apply, YYYY-MM-DD |
target_hire_date | date or null | Deprecated on 20 November 2026: use milestones. The day the job plans to have hired by, YYYY-MM-DD. The app no longer shows it |
published_at | timestamp or null | When the job went live |
closed_at | timestamp or null | When the job was last unpublished. null while it is scheduled or published |
archived_at | timestamp or null | When the job was archived |
created_at | timestamp | When the job was created |
updated_at | timestamp | When the job last changed |
application_counts_by_status | list of objects | How many applications sit in each status, on this list and on Get one job. See Application counts |
An enum can gain a value in version 1, so handle one you do not know. Timestamps, nulls and enums describes each format.
Application counts
application_counts_by_status lists each status that holds at least one of the job's applications, ordered as the statuses are. A job with no applications has an empty list.
| Field | Type | Meaning |
|---|---|---|
status_id | UUID | The status's id. Statuses lists its other fields |
name | string | The status's name |
category | string | The status's category |
count | integer | How many applications sit in this status, at least 1 |
The counts follow what you can see in the app, minus any team your key's team access leaves out. A key limited to some teams counts only applications in those teams, never one you reach only through a private share. Archived applications stay out.
The counts need Read, not Read candidate data. They name no person and carry no gender or review score, but a count can be one. A new count does not move the job's updated_at, so polling with updated_since does not notice it. A create's answer and a webhook's job leave the field out.
Page through every job
Ask for a page, then send next_cursor back as cursor until it is null. A cursor keeps the order of its page, so you can leave order out on the next call. Send the filters again with each cursor.
curl "https://attia.app/api/v1/jobs?limit=100&cursor=eyJ1IjoiMjAyNi0xMC0wMlQwODoxNTozMC40ODI5MTNaIiwiaSI6IjAxOTJmM2ExLTdjNDQtN2IxZS05YTUwLTNmMWQyYzZlOGEwMiJ9" \ -H "Authorization: Bearer $ATTIA_API_KEY"The cursor stays stable while people edit jobs. With the default order, a job edited during your read moves behind the cursor, and you may see it again on a later page. Keep the latest copy per id. With order=newest an edited job moves to the front, and later pages skip it. Pagination explains the sort order.
Poll for changes
updated_since is inclusive. Send a time five minutes before the largest updated_at you have stored. A change gets its updated_at when the save starts, so it can turn up with a time older than one you already read. The answer repeats jobs you already have, so drop the repeats by id. With 2026-10-01T09:42:10.118305Z as the largest, the call is this.
curl "https://attia.app/api/v1/jobs?updated_since=2026-10-01T09:37:10.118305Z" \ -H "Authorization: Bearer $ATTIA_API_KEY"You can combine updated_since with cursor and limit when one poll returns more than a page.
Archived jobs
The list leaves archived jobs out unless you ask for them. That matters when you keep a copy. A job that someone archives stops appearing in the default list, and your copy never learns why. Send include_archived=true when you poll, and an archived job comes back with a time in archived_at.
curl "https://attia.app/api/v1/jobs?include_archived=true&updated_since=2026-10-01T00:00:00Z" \ -H "Authorization: Bearer $ATTIA_API_KEY"Get one job
GET /api/v1/jobs/{id} returns the job with that id. It takes one query parameter, language, to read the job in another of its languages, as Job languages describes. Any other parameter gets a 400 with the code invalid-request.
curl "https://attia.app/api/v1/jobs/0192f3a1-6b02-7d4c-8e11-5a9c0b7d3e01" \ -H "Authorization: Bearer $ATTIA_API_KEY"The answer holds the job in data, with the same fields as a job in the list. An archived job comes back too, with a time in archived_at.
{ "data": { "id": "0192f3a1-6b02-7d4c-8e11-5a9c0b7d3e01", "title": "Backend developer", "slug": "backend-developer", "status": "live", "publish_status": "published", "team_id": "0192f39f-11aa-7c3e-b2d4-9e8f7a6b5c4d", "employment_type": "full_time", "contract_type": "permanent", "workplace_type": "hybrid", "locations": ["Eksempelvik"], "positions_count": 2, "application_deadline": "2026-11-15", "target_hire_date": null, "published_at": "2026-09-28T07:30:00.000000Z", "closed_at": null, "archived_at": null, "created_at": "2026-09-25T12:04:51.220417Z", "updated_at": "2026-10-01T09:42:10.118305Z", "application_counts_by_status": [ { "status_id": "0192f3c7-5e21-7b4a-8c10-2d9e6f1a7b35", "name": "Interview", "category": "active", "count": 3 } ] }}A 404 with the code not-found means no job your key can see has that id. The job may not exist, may be deleted, may belong to another workspace, or may sit in a team the list leaves out for you. Every one of these gets the same answer, so a 404 never tells you whether the job exists. An id that is not a UUID gets the same 404.
Create a job
POST /api/v1/jobs creates a job in a team you pick. It needs the Write permission. The job starts as a draft: Unpublished, on no career site and on no job board. Every field other than the title and the team takes its default, and you finish the job in the app.
curl -X POST "https://attia.app/api/v1/jobs" \ -H "Authorization: Bearer $ATTIA_API_KEY" \ -H "Idempotency-Key: 0192f3c4-2d18-7a6e-9f30-6b1e8c2d4a77" \ -H "Content-Type: application/json" \ -d '{"title": "Backend developer", "team_id": "0192f39f-11aa-7c3e-b2d4-9e8f7a6b5c4d"}'The body is a JSON object with these two fields, and both are required.
| Field | Type | Meaning |
|---|---|---|
title | string | The job title, at most 200 characters. It cannot be blank, and spaces at either end are removed |
team_id | UUID | The team the job belongs to. You must be able to create jobs in it, and a key limited to some teams must include it |
A body that is not a JSON object gets a 400 with the code invalid-request. So does a missing field, a blank title, a title over 200 characters, a field outside this table and any query parameter. errors names each one.
The answer is a 201 with the job in data, with the same fields as Get one job except application_counts_by_status. The Location header holds the job's path.
HTTP/2 201location: /api/v1/jobs/0192f3a1-6b02-7d4c-8e11-5a9c0b7d3e01{ "data": { "id": "0192f3a1-6b02-7d4c-8e11-5a9c0b7d3e01", "title": "Backend developer", "slug": "backend-developer-0192f3a16b02", "status": "draft", "publish_status": "unpublished", "team_id": "0192f39f-11aa-7c3e-b2d4-9e8f7a6b5c4d", "employment_type": "full_time", "contract_type": "permanent", "workplace_type": "onsite", "locations": [], "positions_count": 1, "application_deadline": null, "target_hire_date": null, "published_at": null, "closed_at": null, "archived_at": null, "created_at": "2026-10-29T08:15:30.482913Z", "updated_at": "2026-10-29T08:15:30.482913Z" }}In the app, the job's Activity and the workspace audit log name you as the creator, followed by "via API".
A team you cannot create jobs in gets a 400 invalid-request that names team_id. The answer is the same whether the team does not exist, is archived, belongs to another workspace, or is one your key's team access leaves out. A view-only workspace gets workspace-view-only.
Retry a create safely
Every create needs an Idempotency-Key header. Pick a new value for each job: 1 to 255 letters, digits, - or _. A UUID works. A create without one gets a 400 idempotency-key-required, before the API reads the body.
When a create times out or the connection drops, send it again with the same key. Within 24 hours, the same key with the same body and the same API key creates no second job. It gets the first answer back: the 201, the Location and the job as it was created, plus the header Idempotency-Replayed: true. Read the job with GET /api/v1/jobs/{id} to see it as it is now. The order of the fields in the body does not matter, but a changed value does.
The same key with another body or another API key gets a 422 idempotency-key-reused, and so does the same key after 24 hours, up to 90 days; after 90 days the same key creates a new job. A retry that arrives while the first request is still running waits for it. If the wait runs too long, the retry gets a 429 rate-limited with Retry-After: 1.
List a job's comments
GET /api/v1/jobs/{id}/comments lists the comments in one job's Activity, on the job itself and on its updates, as you see them in the app. It needs the Read permission. A comment holds what a person wrote, so a key with Read can read anything someone wrote there, a candidate's name included.
curl "https://attia.app/api/v1/jobs/0192f3a1-6b02-7d4c-8e11-5a9c0b7d3e01/comments?limit=50" \ -H "Authorization: Bearer $ATTIA_API_KEY"All three query parameters are optional.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
limit | integer, 1 to 100 | 25 | How many comments to return |
cursor | string | none | The next_cursor of the previous page |
updated_since | RFC 3339 timestamp | none | Only comments updated at or after this time |
The answer holds the comments in data, sorted by updated_at and then id, oldest change first. next_cursor is a string when more comments exist and null on the last page.
{ "data": [ { "id": "0192f5c2-7a10-7b3e-8c21-4d0e1f2a3b01", "thread_id": "0192f5c2-6f00-7a2d-9b10-3c4d5e6f7a01", "job_update_id": null, "body_text": "Let's move the first interview to next week.", "body_markdown": "Let's move the first interview to next week.", "author_name": "Ola Eksempel", "created_by_workspace_member_id": "0192f39f-22bb-7c3e-b2d4-9e8f7a6b5c01", "by_agent": false, "created_at": "2026-09-30T08:12:40.118305Z", "edited_at": null, "updated_at": "2026-09-30T08:12:40.118305Z" } ], "next_cursor": null}| Field | Type | Meaning |
|---|---|---|
id | UUID | The comment's id |
thread_id | UUID | The thread the comment is in. The thread's first comment starts it |
job_update_id | UUID or null | The update the thread is on, or null when the thread is on the job itself |
body_text | string | What the author wrote, as plain text |
body_markdown | string | What the author wrote, as Markdown. An uploaded image comes back as its markdown line. When the body holds something this Markdown cannot carry, such as a mention, it is the plain text of body_text |
author_name | string or null | The author's name, or null when there is none or the stored name looks like an email |
created_by_workspace_member_id | UUID or null | The member who wrote it, or null when the Agent wrote it |
by_agent | boolean | true when the Agent wrote it |
created_at | timestamp | When it was written |
edited_at | timestamp or null | When the author last edited it, or null if never |
updated_at | timestamp | When it last changed |
Editing a comment moves its updated_at, so updated_since finds it. A deleted comment is not in the list, and neither is a comment on a deleted update, so a poll with updated_since never reports that it went away. To notice, read every page again.
A 404 with the code not-found means your key cannot read that job, as for GET /api/v1/jobs/{id}. An archived job also answers 404 here, though GET /api/v1/jobs/{id} returns it.
List a job's updates
GET /api/v1/jobs/{id}/updates lists the updates on one job: how the job is going, in the words of whoever wrote it. It needs the Read permission, and takes the query parameters comments take.
curl "https://attia.app/api/v1/jobs/0192f3a1-6b02-7d4c-8e11-5a9c0b7d3e01/updates?limit=50" \ -H "Authorization: Bearer $ATTIA_API_KEY"The answer holds the updates in data, sorted by updated_at and then id, oldest change first. next_cursor is a string when more updates exist and null on the last page.
{ "data": [ { "id": "0192f5d7-1c20-7a3e-9b21-6e0f1a2b3c02", "job_id": "0192f3a1-6b02-7d4c-8e11-5a9c0b7d3e01", "health": "at_risk", "body_text": "Few applicants so far. We extend the deadline by a week.", "body_markdown": "Few applicants so far. We extend the deadline by a week.", "author_name": "Ola Eksempel", "created_by_workspace_member_id": "0192f39f-22bb-7c3e-b2d4-9e8f7a6b5c01", "created_at": "2026-10-02T10:05:11.402981Z", "edited_at": null, "updated_at": "2026-10-02T10:05:11.402981Z" } ], "next_cursor": null}| Field | Type | Meaning |
|---|---|---|
id | UUID | The update's id |
job_id | UUID | The job it is on |
health | on_track, at_risk or off_track | How the job is going |
body_text | string | What the author wrote, as plain text |
body_markdown | string | What the author wrote, as Markdown. An uploaded image comes back as its markdown line. When the body holds something this Markdown cannot carry, it is the plain text of body_text |
author_name | string or null | The author's name, or null when there is none or the stored name looks like an email |
created_by_workspace_member_id | UUID or null | The member who wrote it, or null when none is left |
created_at | timestamp | When it was written |
edited_at | timestamp or null | When the author last edited it, or null if never |
updated_at | timestamp | When it last changed |
A deleted update is not in the list. A 404 with the code not-found means your key cannot read that job, and an archived job answers 404 here too.
Update a job
PATCH /api/v1/jobs/{id} changes a job you can edit. It needs the Write permission and an Idempotency-Key header, as a create does. Every field is optional, and a field you leave out keeps its value.
curl -X PATCH "https://attia.app/api/v1/jobs/0192f3a1-6b02-7d4c-8e11-5a9c0b7d3e01" \ -H "Authorization: Bearer $ATTIA_API_KEY" \ -H "Idempotency-Key: 0192f3c9-7a41-7e2b-a1d0-3c5f8e9b2d16" \ -H "Content-Type: application/json" \ -d '{"title": "Senior backend developer", "positions_count": 2, "label_ids": ["0192f3d0-4c19-7f8a-b2e1-6d7a9c0e1f23"], "links": [{"url": "https://example.com/role-brief", "title": "Role brief"}]}'The body is a JSON object with any of these fields.
| Field | Type | Meaning |
|---|---|---|
id | UUID | The job's id, in the path |
title | string | The job title, at most 200 characters. It cannot be blank, and spaces at either end are removed |
employment_type | enum | full_time or part_time |
contract_type | enum | permanent, temporary, fixed_contract, seasonal, project, trainee, apprenticeship, self_employed or agency |
workplace_type | enum | remote, hybrid or onsite |
positions_count | integer | How many people the job hires, from 1 to 999 |
application_deadline | date or null | The last day to apply, YYYY-MM-DD. null removes the deadline |
target_hire_date | date or null | Deprecated on 20 November 2026: use milestones. The day the job plans to have hired by, YYYY-MM-DD. null removes it. A write changes this field only, not a milestone |
label_ids | list of UUIDs | The job's labels, at most 100. The list replaces the labels the job has, and an empty list removes them all. Each must be a job label of the workspace that is not archived, with at most one from each group. An archived label the job already has stays when the list names it. Job labels lists them |
links | list of objects | Links to add to the job, 1 to 20, each with a url and a title. They join the job's resources, and the links it has stay |
language | string | A language other than the job's main one, such as fi. With it, title and job_ad change that language, or add it when the job does not have it, and no other field may be sent. Job languages has the rules |
job_ad | string | The job ad in language, as Markdown, at most 400,000 characters. Needs language |
version | integer | The version your last read of language answered. Needs language |
translation_id | UUID | The translation.id your last read of language answered. Needs language |
main_title | string | The job's own title, as your last read with language answered it. Needs language, and a body with language needs it |
main_job_ad_version | integer | The main_job_ad_version your last read with language answered. Needs language, and a body with language needs it |
Each link has a url, an http or https address of at most 2048 characters, and a title of at most 200 characters that cannot be blank.
You cannot change a job's status, publish status, visibility, career sites, job boards or team here. You publish a job in the app. A body that names status, publish_status, visibility, career_site_ids, job_board_ids, team_id or any other field outside this table gets a 400 invalid-request, and errors names each one. So does a value outside its rules, and null for a field other than the two dates. Nothing changes.
The answer is a 200 with the job in data, with the same fields as Get one job except application_counts_by_status. A body with language adds the fields Job languages lists. The answer has no Location header.
In the app, the workspace audit log names you as the one who made the change, followed by "via API", or by the name of the app you approved. The job's Activity names you too, followed by "via API" for a change made with an API key.
A 404 not-found means no job your key can see has that id, as for Get one job. A job you can see but not edit gets a 400 invalid-request that names id. You can edit a job in a team you belong to, and an owner or admin can edit every job. An archived job gets the same 400; unarchive it in the app first. A label that does not fit the rules above gets a 400 that names label_ids. A view-only workspace gets workspace-view-only.
A retry works as for a create: within 24 hours, the same key with the same body and the same API key changes nothing again and gets the first answer back, with Idempotency-Replayed: true. A field you leave out and a field you set to null are two different bodies.
Job languages
A job can have its title and job ad in more languages than its main one, which Add language gives it in the app. Get one job and Update a job take language to read or change one of them, and so do the MCP tools get_job and save_job.
curl "https://attia.app/api/v1/jobs/0192f3a1-6b02-7d4c-8e11-5a9c0b7d3e01?language=fi" \ -H "Authorization: Bearer $ATTIA_API_KEY"language is the two-letter code of a language a job ad can be in, one that Add language offers in the app. Any other code gets a 400 invalid-request that names language, and so does a value that is not a string. While languages of a job are not switched on yet, a call with language gives 400 with invalid-request naming language.
With language, the job in data has four more fields.
| Field | Type | Meaning |
|---|---|---|
main_language | string | The code of the language the job's own title and job ad are in |
languages | list of strings | The codes of the job's languages: the main one first, then the others in the order they were added |
main_job_ad_version | integer | The version of the job's own job ad. It goes up by one each time someone changes that job ad. Send it back, with the job's title, to change a language |
translation | object or null | The job in language. For the main language, the job's own title and job ad. null for a language the job does not have |
translation has these fields.
| Field | Type | Meaning |
|---|---|---|
id | UUID or null | The language's id. Send it back as translation_id to change the language. null for the main language |
language | string | The language's code |
title | string | The job title in that language |
job_ad | string | The job ad in that language, as Markdown |
version | integer or null | Goes up by one each time the language changes. Send it back to change the language. null for the main language |
{ "data": { "id": "0192f3a1-6b02-7d4c-8e11-5a9c0b7d3e01", "title": "Backend developer", "main_language": "en", "languages": ["en", "fi"], "main_job_ad_version": 3, "translation": { "id": "0192f3b4-2c81-7e5a-9d17-6b3e0a8f4c52", "language": "fi", "title": "Backend-kehittäjä", "job_ad": "Etsimme **backend-kehittäjää** tiimiimme.", "version": 2 } }}This example leaves out the job's other fields, which are the same as without language.
To change a language, send PATCH /api/v1/jobs/{id} with language, main_title and main_job_ad_version, and any of title, job_ad, translation_id and version. It needs the Write permission and an Idempotency-Key header, as every update does.
curl -X PATCH "https://attia.app/api/v1/jobs/0192f3a1-6b02-7d4c-8e11-5a9c0b7d3e01" \ -H "Authorization: Bearer $ATTIA_API_KEY" \ -H "Idempotency-Key: 0192f3ca-1b52-7c3d-9e40-4d6a8f0c3e27" \ -H "Content-Type: application/json" \ -d '{"language": "fi", "title": "Senior backend-kehittäjä", "translation_id": "0192f3b4-2c81-7e5a-9d17-6b3e0a8f4c52", "version": 2, "main_title": "Backend developer", "main_job_ad_version": 3}'A body with language changes that language and nothing else. Any field besides title, job_ad, version, translation_id, main_title and main_job_ad_version gets a 400 that names it. Each of the last five without language gets a 400 that names it too.
main_title and main_job_ad_version name the job ad you translated from: the job's own title and the main_job_ad_version your read answered. A body with language and without one of them gets a 400 that names it. If someone changed the job's own title or job ad after you read it, the body gets a 400 that names the field that no longer matches, and nothing changes. Read the job again with language, check the language against the new job ad, and send the values that read answers.
job_ad is Markdown of at most 400,000 characters. It keeps paragraphs, line breaks, bold, italic, links, and - bulleted and 1. numbered lists (not * ). Other Markdown, such as a heading, stays as its plain text. title follows the same rules as the job's own title.
To add a language the job does not have, leave out translation_id and version. A title you leave out becomes the job's own title and a job ad you leave out is empty, as Add language does in the app. A version or a translation_id sent for a language the job does not have gets a 400 that names it.
To change a language the job has, send the translation_id and version your last read answered. A field you leave out keeps its value. A body without one of them gets a 400 that names it. So does a value that is no longer current, because someone changed the language, or removed it and added it again, after you read it. Nothing changes: read the language again and send the translation_id and version that read answers. A body that changes nothing writes nothing, and version stays.
language set to the job's main language gets a 400 that names language. Change the job's own title without language.
The answer is a 200 with the job in data, as a read with language answers it, without application_counts_by_status. Its translation is the language you wrote, with its new version. The other refusals are the ones a title update gets: a 404 for a job your key cannot see, a 400 that names id for a job you cannot edit or an archived one, and workspace-view-only. The workspace audit log records the change as it records an update. A retry works as it does for Update a job.
Write a comment
POST /api/v1/comments writes a comment as you on a job, a job update, an application or a candidate, or replies in a comment's thread, one on a document included. It needs the Write permission and an Idempotency-Key header, which works as it does for a job create.
curl -X POST "https://attia.app/api/v1/comments" \ -H "Authorization: Bearer $ATTIA_API_KEY" \ -H "Idempotency-Key: 0192f5e0-3b11-7c2d-8e40-1a2b3c4d5e6f" \ -H "Content-Type: application/json" \ -d '{"job_id": "0192f3a1-6b02-7d4c-8e11-5a9c0b7d3e01", "body": "Move the first interview to **next week**."}'The body takes body and exactly one of job_id, job_update_id, application_id, candidate_id and parent_id.
| Field | Type | Meaning |
|---|---|---|
body | string | What you write, in Markdown: paragraphs, line breaks, - and 1. lists, **bold**, *italic*, [links](https://example.com), and the markdown of an uploaded image on a line of its own. At most 20000 characters of text, or 4000 on an application or a candidate, and it needs some text. A body of images alone has their alt text as its text |
job_id | UUID | Starts a thread on this job |
job_update_id | UUID | Starts a thread on this job update |
parent_id | UUID | Replies in this comment's thread. The comment can be on a job, a job update, a document, an application or a candidate |
document_id | UUID | Not taken. A new comment on a document is anchored to text in it, which the API cannot do. Reply to one of its comments with parent_id |
application_id | UUID | Starts a thread on this application. Needs Write candidate data too |
candidate_id | UUID | Starts a thread on this candidate. Needs Write candidate data too |
The answer is a 201 with the comment in data. The Location header holds its path.
{ "data": { "id": "0192f5e1-0a20-7b3e-8c21-4d0e1f2a3b07", "thread_id": "0192f5e1-0a1f-7a2d-9b10-3c4d5e6f7a07", "job_id": "0192f3a1-6b02-7d4c-8e11-5a9c0b7d3e01", "job_update_id": null, "document_id": null, "application_id": null, "candidate_id": null, "body_text": "Move the first interview to next week.", "body_markdown": "Move the first interview to **next week**.", "author_name": "Ola Eksempel", "created_by_workspace_member_id": "0192f39f-22bb-7c3e-b2d4-9e8f7a6b5c01", "by_agent": false, "created_at": "2026-11-05T09:20:14.551203Z", "edited_at": null, "updated_at": "2026-11-05T09:20:14.551203Z" }}The comment has the fields of a job's comments, plus these four.
| Field | Type | Meaning |
|---|---|---|
job_id | UUID or null | The job the comment is on, or null on any other comment |
document_id | UUID or null | The document the comment is on, or null on any other comment |
application_id | UUID or null | The application the comment is on, or null on any other comment |
candidate_id | UUID or null | The candidate the comment is on, or null on any other comment |
In the app, the comment shows where you put it, and the workspace audit log names you as the author, followed by "via API". An automation that runs on a new comment runs on this one too.
A comment on an application or a candidate, or a reply in a thread on one, needs Write candidate data as well as Write. A key that lacks either gets a 403 insufficient-scope. The comment stays inside the workspace, as a comment written in the app does, and never goes to the candidate.
A job, job update, application, candidate or comment your key cannot read gets a 404 with the code not-found, and so does an archived application. A body with none of job_id, job_update_id, application_id, candidate_id and parent_id, or with more than one, gets a 400 invalid-request, and so does one with document_id. A view-only workspace gets workspace-view-only.
Edit a comment
PATCH /api/v1/comments/{id} changes the body of a comment you wrote, on a job, a document, an application or a candidate. It needs the Write permission and an Idempotency-Key header, and a comment on an application or a candidate needs Write candidate data too. Leave body out and nothing changes.
curl -X PATCH "https://attia.app/api/v1/comments/0192f5e1-0a20-7b3e-8c21-4d0e1f2a3b07" \ -H "Authorization: Bearer $ATTIA_API_KEY" \ -H "Idempotency-Key: 0192f5e2-4c30-7d1e-9f50-2b3c4d5e6f70" \ -H "Content-Type: application/json" \ -d '{"body": "Move the first interview to Tuesday."}'The answer is a 200 with the comment in data, as a write answers it, and with edited_at set. A comment someone else wrote gets a 400 invalid-request that names id. A comment your key cannot read gets a 404 not-found.
Write a job update
POST /api/v1/job-updates posts an update on a job as you: how the job is going, and why. It needs the Write permission and an Idempotency-Key header.
curl -X POST "https://attia.app/api/v1/job-updates" \ -H "Authorization: Bearer $ATTIA_API_KEY" \ -H "Idempotency-Key: 0192f5e3-5d40-7e2f-8a60-3c4d5e6f7a81" \ -H "Content-Type: application/json" \ -d '{"job_id": "0192f3a1-6b02-7d4c-8e11-5a9c0b7d3e01", "health": "at_risk", "body": "Few applicants so far."}'All three fields are required.
| Field | Type | Meaning |
|---|---|---|
job_id | UUID | The job the update is on |
health | on_track, at_risk or off_track | How the job is going |
body | string | What you write, in Markdown, as for a comment |
The answer is a 201 with the update in data, with the fields of a job's updates. The Location header holds its path. The update shows in the job's Activity, and the audit log names you, followed by "via API". A job your key cannot read gets a 404 not-found.
Edit a job update
PATCH /api/v1/job-updates/{id} changes the health, the body or both on an update you wrote. It needs the Write permission and an Idempotency-Key header. A field you leave out keeps its value.
The answer is a 200 with the update in data, with edited_at set. An update someone else wrote gets a 400 invalid-request that names id. An update your key cannot read gets a 404 not-found.
Delete a comment
DELETE /api/v1/comments/{id} deletes a comment you wrote, on a job, a job update, a document, an application or a candidate, as Delete does in the app. It needs the Write permission and an Idempotency-Key header, and a comment on an application or a candidate needs Write candidate data too.
curl -X DELETE "https://attia.app/api/v1/comments/0192f5e1-0a20-7b3e-8c21-4d0e1f2a3b07" \ -H "Authorization: Bearer $ATTIA_API_KEY" \ -H "Idempotency-Key: 0192f5e4-6e50-7f3a-9b70-4d5e6f7a8b92"| Parameter | Type | Meaning |
|---|---|---|
id | UUID | In the path: the comment's id |
The answer is a 204 with no body. The audit log names you, followed by "via API". The same Idempotency-Key within 24 hours gets the 204 again and deletes nothing.
The API deletes only your own comments: a comment someone else wrote gets a 400 invalid-request that names id. A comment your key cannot read, or one already deleted, gets a 404 not-found.
Delete a job update
DELETE /api/v1/job-updates/{id} deletes an update on a job your key can read, whoever posted it, as Delete does in the app. It needs the Write permission and an Idempotency-Key header.
| Parameter | Type | Meaning |
|---|---|---|
id | UUID | In the path: the update's id |
The answer is a 204 with no body, and the audit log names you, followed by "via API". The same Idempotency-Key within 24 hours gets the 204 again and deletes nothing. An update your key cannot read, or one already deleted, gets a 404 not-found.