Getting started
Create a personal API key, send it with a request and read your first answer from the Attia API.
Overview
The Attia API lets your own programs read and change data in a workspace over HTTPS. Every address starts with https://attia.app/api/v1, every answer is JSON, and a personal API key identifies you.
Version 1 has these operations so far: List jobs, Get one job, Create a job, List applications, Get one application, List candidates and Get one candidate. This page takes you from no key to your first answer.
Six more read who you are and who is in the workspace: Who am I, Get the workspace, List teams, Get one team, List members and Get one member.
Four more read statuses and labels: List statuses, Get one status, List application labels and List job labels.
Two more read documents: List documents and Get one document.
Six more read the views, templates and Agent skills you can see and search the help pages: List views, List templates, Get one template, List skills, Get one skill and Search the help pages.
Two more read and mark your own Inbox: List notifications and Mark a notification.
Two more upload an image and read the images in a Markdown body: Upload an image and Read the images in a body.
Four more read an attachment, upload a file to an application or a candidate, and delete a file on an application: Get an attachment, Prepare an upload, Link the file and Delete an application file.
Four more read comments and job updates: List a job's comments, List a job's updates, List an application's comments and List a candidate's comments.
Seven more change a job and write on it: Update a job, Write a comment, Edit a comment, Delete a comment, Write a job update, Edit a job update and Delete a job update. A comment can also go on an application or a candidate.
Two more write documents: Create a document and Update a document.
Application labels and job labels are written with Create a label, Change a label and Retire and restore a label.
Three more change applications and candidates: Update an application, which also moves it to another status, Update a candidate and Attach or remove a label.
Five more manage webhooks, for a workspace admin: Subscribe, Unsubscribe, List webhooks, Get one webhook and Sample events.
Seven more find free times and book interviews: Find free times, List interviews, Get one interview, Book an interview, Move an interview, Cancel an interview and Ask a candidate to choose a time.
The API is available on Business and Enterprise. On any other plan Settings → API explains what the API does instead of showing its settings. An admin gets Upgrade to Business there, and anyone else a line asking a workspace admin to upgrade. When the workspace still has webhooks or API keys, an admin also reads a line with their counts, and each count links to its list.
Create a key
Open Settings → Security & access → Personal API keys and choose New API key. Give the key a name and at least the Read permission. Attia shows the key once, so copy it then. A key starts with attia_api_.
A key acts as you. It can do what you can do in the workspace, limited further by the permissions and teams you gave it. Authentication covers permissions, revoking and IP restrictions.
Send the key
Send the key in the Authorization header as a bearer token.
curl https://attia.app/api/v1/jobs \ -H "Authorization: Bearer $ATTIA_API_KEY"Call the API from a server or a script, never from a web page. The API sends no CORS headers, so a browser refuses the answer, and a key in page source is a key anyone can copy.
Your first request
Put the key in an environment variable and ask for two jobs.
export ATTIA_API_KEY="attia_api_..." curl "https://attia.app/api/v1/jobs?limit=2" \ -H "Authorization: Bearer $ATTIA_API_KEY"A list answers with data and next_cursor.
{ "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" }, { "id": "0192f3a1-7c44-7b1e-9a50-3f1d2c6e8a02", "title": "Store manager", "slug": "store-manager", "status": "draft", "publish_status": "unpublished", "team_id": "0192f39f-11aa-7c3e-b2d4-9e8f7a6b5c4d", "employment_type": "part_time", "contract_type": "temporary", "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-02T08:15:30.482913Z", "updated_at": "2026-10-02T08:15:30.482913Z" } ], "next_cursor": "eyJ1IjoiMjAyNi0xMC0wMlQwODoxNTozMC40ODI5MTNaIiwiaSI6IjAxOTJmM2ExLTdjNDQtN2IxZS05YTUwLTNmMWQyYzZlOGEwMiJ9"}next_cursor is not null, so more jobs exist. Pagination shows how to fetch them.
Webhooks
A webhook sends a POST to your URL when something happens in the workspace. Webhooks come with the API, on Business and Enterprise. A workspace admin sets up each one with a label, a URL, the events it follows and, if they want, one team. See Set up a webhook. A tool such as Zapier can also subscribe and unsubscribe through the API, with an admin's key: see Webhooks.
Version 1 sends thirteen events:
job.created: a job was created.job.updated: a field the API returns for a job changed, or a deleted job was restored.job.deleted: a job was deleted.application.created: an application was created.application.status_changed: an application moved to another status.application.updated: a field the API returns for an application changed, or a deleted application was restored.application.deleted: an application was deleted.candidate.erased: a candidate was erased from the workspace for good.interview.requested: a candidate was asked to book an interview.interview.scheduled: an interview was booked.interview.rescheduled: an interview moved to another time, in Attia or in the host's calendar.interview.cancelled: an interview was cancelled.interview.ended: an interview's time is over.
Each change sends one event, with the record's public_revision as its revision. A move to another status sends application.status_changed, and it sends application.updated too only when the same change touches another field, such as the assignee. A change to a field the API does not return sends nothing, but it can still move public_revision, so revision numbers can skip. A job or application moved to another team sends its event to webhooks on the new team, not the old one.
An interview event belongs to its application. Its revision is the application's revision at that event, so you can order the interview events of one application. Its data is the interview: id, application_id, job_id, status, starts_at and ends_at in UTC, time_zone, place, join_url, host_workspace_member_id, changed_by, created_at and updated_at. On interview.requested, data is the booking request instead: id, application_id, job_id, state, duration_minutes, window_days, place, host_workspace_member_id, respond_by, changed_by and created_at. It has no start or end, because the candidate has not picked a time yet. changed_by says who made the change. Its type is member, with the member's workspace_member_id, or candidate, automation or system. host_workspace_member_id is the first host. No interview event carries the candidate's email or phone number.
Application and interview events go out only while an admin has turned on Candidate data in the API in Settings → API. While it is off Attia sends none, and turning it back on does not send the ones it skipped. candidate.erased goes out either way, because it carries only the candidate's id, so you can erase your copy. A candidate belongs to no team, so candidate.erased goes to every webhook that follows it, including a webhook set to one team. If you never saw that candidate, you can ignore the id.
A webhook acts as the admin who set it up. Attia checks that admin's access when it sends, so a job or application the admin can no longer see, or an interview on such an application, is not sent. A webhook turns off when its admin leaves the workspace or stops being an admin, or after 24 hours of failed deliveries. When its admin has left or is no longer an admin, it then acts as the admin who turns it on again.
Set up a webhook
An admin sets up a webhook in Settings → API. Under Webhooks, choose New webhook, or the + when the list already has one, and fill in the form:
- Label: the webhook's name in the list.
- URL: the address Attia sends each event to. It must start with
https://. - Signing secret: Attia makes it for you. Use it to verify the signature.
- Data change events: Applications, Candidates, Interviews and Jobs. Applications starts checked. Each box follows every event of its kind, and Candidates is
candidate.erased. To follow single events, subscribe through the API. - Team selection: All public teams or one team. You cannot change it after creation. All public teams leaves out private teams, so a private team needs a webhook of its own.
Choose Create webhook, and Attia opens the webhook's page. It shows the delivery status and the delivery failures, and you can copy the secret at any time or rotate it. The three-dot menu there, and on the webhook's row in the list, has Edit webhook for the label, the URL and the events, Disable webhook or Enable webhook, and Delete webhook.
After a downgrade below Business a webhook stays. The page of one that is on reads Paused: plan, and Attia sends nothing until the workspace is back on Business or Enterprise. Attia does not send the events it skipped. To open or delete a webhook after a downgrade, an admin follows the webhook count under Upgrade to Business in Settings → API. New webhook is not there until the workspace is back on Business or Enterprise.
On Enterprise an admin can also stream the audit log to a webhook from Stream logs in Settings → Audit log. That webhook follows only audit_event.created, belongs to no team and carries no IP address. See Stream the audit log.
The request
The body is JSON.
{ "id": "50d858e0985ecc7f60418aaf0cc5ab587f42c2570a884095a9e8ccacd0f6545c", "type": "job.created", "version": "v1", "timestamp": "2026-10-02T08:15:31.004127Z", "workspace_id": "0192f39e-02b1-7a5c-9d3e-4f6a8b0c2d1e", "revision": 1, "data": { "id": "0192f3a1-7c44-7b1e-9a50-3f1d2c6e8a02", "title": "Store manager", "slug": "store-manager", "status": "draft", "publish_status": "unpublished", "team_id": "0192f39f-11aa-7c3e-b2d4-9e8f7a6b5c4d", "employment_type": "part_time", "contract_type": "temporary", "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-02T08:15:30.482913Z", "updated_at": "2026-10-02T08:15:30.482913Z" }}idis the delivery's id, the same value as thewebhook-idheader.typeis the event.versionis the API versiondatafollows:v1.timestampis when the change happened. It stays the same on every retry; thewebhook-timestampheader carries the attempt's time.revisionis the record's revision when the event happened, so you can order two events for the same record. On an interview event it is the application's revision. It isnulloncandidate.erased.datais the job or application asGET /api/v1/jobs/{id}orGET /api/v1/applications/{id}returns it to the admin when Attia sends, without a job'sapplication_counts_by_status. It can be newer than the event. Onjob.deleted,application.deletedandcandidate.erased,dataholds onlyid. On an interview event,datais the interview, or the booking request oninterview.requested, as Attia reads it when it sends.previousis only onjob.updatedandapplication.updated. It holds the old values of the fields the event changed and no other field, such as{"title": "Shop manager"}. The values are as they were when the event happened, in the same format asdata, soprevious.titleis the title before this change even whendatahas moved on. It leaves out any fielddatadoes not return. A restore has noprevious, and neither has an event from before this field existed. A move to another status keepscurrent_status_id,board_categoryandwithdrawn_atout ofprevious, becauseapplication.status_changedreports that move. Attia stores the old values with the event and clears them when the candidate is deleted for good.
Three headers carry the signature: webhook-id, webhook-timestamp and webhook-signature. The request also has content-type: application/json and user-agent: Attia-Webhooks/1.0.
Verify the signature
Attia signs with Standard Webhooks. webhook-signature is v1, and then the base64 HMAC-SHA256 of <webhook-id>.<webhook-timestamp>.<body>, keyed with the part of your secret after whsec_, decoded from base64. Key it with the decoded bytes, not with that text. For 24 hours after a secret is rotated the header holds two signatures separated by a space, and the request is genuine if either one matches. Any Standard Webhooks library checks this for you, and refuses a timestamp more than five minutes from your clock.
Answer and retries
Answer with a 2xx status within 5 seconds. After a 408, a 429, a 5xx, a timeout or no connection, Attia tries again under the same webhook-id: 1 minute after the first try, 1 hour after the second, then every 6 hours, for up to 24 hours. If an Attia worker stops in the middle of a delivery, the next try can come sooner. If a delivery still fails after 24 hours, Attia turns the webhook off, cancels its queued deliveries, and tells every admin by email and in the inbox. An admin turns it on again in Settings → API. The webhook says there why it is off, and its page lists the deliveries that failed in the last 90 days. Attia does not resend the events it skipped while the webhook was off. Any other status, a redirect included, ends the delivery. A body over 256 KB is never sent.
Delivery is at least once, so the same webhook-id can reach you twice. Skip an id you have already handled.
An admin can redeliver one failed delivery at a time from the webhook's page in Settings → API, while the webhook is on and for 30 days after the delivery failed. A redelivery keeps the same webhook-id and id, so skip it if you already handled that id. Attia reads data again under the webhook admin's access at that moment. The delivery leaves the list once it arrives, and stays with its new result if it fails again.
Next steps
- Authentication: the key format, permissions, revoking and IP restrictions.
- OAuth: let an app call the API for a member who approved it, without a personal API key.
- Pagination: page size, cursors, polling for changes, and how timestamps, nulls and enums look.
- Errors: the problem document and every error code.
- Rate limits: how many requests you can send and the headers that count them.
- Versioning: what can change in version 1 and how a retirement is announced.
- Jobs: every parameter and field of
GET /api/v1/jobs,GET /api/v1/jobs/{id},POST /api/v1/jobsandPATCH /api/v1/jobs/{id}, and of reading, writing, editing and deleting comments and job updates. - Applications: every parameter and field of
GET /api/v1/applications,GET /api/v1/applications/{id}andPATCH /api/v1/applications/{id}, and of an application's comments. - Candidates: every parameter and field of
GET /api/v1/candidates,GET /api/v1/candidates/{id},PATCH /api/v1/candidates/{id}andPOST /api/v1/candidates/{id}/labels, of a candidate's comments, and the switch they need. - Workspace, teams and members: every parameter and field of
GET /api/v1/whoami,GET /api/v1/workspace, and listing and getting teams and members. - Statuses: every parameter and field of
GET /api/v1/statusesandGET /api/v1/statuses/{id}. - Labels: every parameter and field of
GET /api/v1/application-labelsandGET /api/v1/job-labels, and of creating, changing, retiring and restoring a label. - Documents: every parameter and field of
GET /api/v1/documents,GET /api/v1/documents/{id},POST /api/v1/documentsandPATCH /api/v1/documents/{id}. - Views, templates, skills and help search: every parameter and field of
GET /api/v1/views, listing and getting templates and skills, andGET /api/v1/docs/search. - Notifications: every parameter and field of
GET /api/v1/notificationsandPOST /api/v1/notifications/{id}, and the notifications that need candidate data. - Images: every parameter and field of
POST /api/v1/imagesandGET /api/v1/images, uploading the bytes, and the addressGET /api/v1/images/{id}that shows an image. - Attachments: every parameter and field of
GET /api/v1/attachments/{id},POST /api/v1/attachments/uploads,POST /api/v1/attachmentsandDELETE /api/v1/attachments/{id}, and the file rules. - Webhooks: subscribing with
POST /api/v1/webhooks, unsubscribing withDELETE /api/v1/webhooks/{id}and reading sample events withGET /api/v1/webhooks/samples/{event}, as Zapier does, and listing webhooks withGET /api/v1/webhooks. - MCP server: connect an AI client to Attia, signed in or with a personal API key, and the tools it gets.