# Repsona API Full LLM Context > Aggregated API documentation for AI systems (English). - API documentation: https://repsona.com/api - Source index: https://repsona.com/llms.txt ## Usage - Base URL: `https://.repsona.com` (your space URL). Append each API path - Authentication: `Authorization: Bearer `. Create an API key under "User settings > API Key" in Repsona. Requests act as the user who created the key. A key can call only the operations in this reference (others return 403) - Requests: query parameters for GET, a JSON body (`Content-Type: application/json`) for POST, PATCH and the like - Responses: always JSON. 2xx on success, 4xx for request errors, 5xx for server errors. Errors carry `error.code` and `error.message` - Example error: `{"ok":false,"requestId":"cm3x9k2h40001qz8f7a1b2c3d","statusCode":404,"error":{"code":"NOT_FOUND","message":"Not Found"}}` - Rate limits: per user per minute, reads (GET) and writes counted separately. Over the limit returns 429. Headers: `RateLimit-Limit`, `RateLimit-Remaining`, `RateLimit-Reset` (seconds) - Free: 1000 reads / min, 150 writes / min - Standard: 2000 reads / min, 150 writes / min - App URLs (built from API IDs): - https://.repsona.com/p/{projectId} - https://.repsona.com/p/{projectId}/task/{taskId} - https://.repsona.com/p/{projectId}/note/{noteId} - https://.repsona.com/p/{projectId}/gantt ## API Documentation: Create task URL: https://repsona.com/api/post-task POST /api/task Creates a task in the current space. - name (body, string, required): Task name (1 to 255 characters). - parentId (body, integer | null, required): ID of the parent task. `null` makes the task top-level. - projectId (body, integer, required): ID of the project the task belongs to. - responsibleUserId (body, integer | null, required): ID of the user assigned to the task. `null` leaves it unassigned. - ballHoldingUserId (body, integer | null, required): ID of the user who currently holds the ball, meaning who needs to act next. `null` means nobody. - statusId (body, integer | null, required): ID of the status, which must belong to the task's project. `null` clears the status. - milestoneId (body, integer | null, required): ID of the milestone, which must belong to the task's project. `null` clears the milestone. - priority (body, integer | null): Priority: `1` is High, `2` is Mid, `3` is Low. `null` clears the priority. - position (body, top | bottom): Where to place the task among its siblings: `top` (default) or `bottom`. - description (body, string | null): Task description as Markdown (up to 20,000 characters). `null` clears it. - startDate (body, number | null): Start date as a Unix timestamp in milliseconds, from 2000-01-01 to 2099-12-31. `null` clears it. - dueDate (body, number | null): Due date as a Unix timestamp in milliseconds, from 2000-01-01 to 2099-12-31. `null` clears it. - extra (body, object | null): Extra display settings. Only `color` (a hex color code such as `#8CC230`, or `null`) is meaningful. - tags (body, string[]): Names of tags to attach. Tags that do not exist yet are created. - subTasks (body, object[]): Subtasks to create under the new task (up to 100). They share the new task's project and status. ## API Documentation: Get task URL: https://repsona.com/api/get-task-taskid GET /api/task/{taskId} Returns a single task in the current space. - taskId (path, integer, required): ID of the task. ## API Documentation: Update task URL: https://repsona.com/api/patch-task-taskid PATCH /api/task/{taskId} Updates a task in the current space. - taskId (path, integer, required): ID of the task. - name (body, string): Task name (1 to 255 characters). - parentId (body, integer | null): ID of the parent task. `null` makes the task top-level. - projectId (body, integer): ID of the project the task belongs to. - responsibleUserId (body, integer | null): ID of the user assigned to the task. `null` leaves it unassigned. - ballHoldingUserId (body, integer | null): ID of the user who currently holds the ball, meaning who needs to act next. `null` means nobody. - statusId (body, integer | null): ID of the status, which must belong to the task's project. `null` clears the status. - milestoneId (body, integer | null): ID of the milestone, which must belong to the task's project. `null` clears the milestone. - priority (body, integer | null): Priority: `1` is High, `2` is Mid, `3` is Low. `null` clears the priority. - description (body, string | null): Task description as Markdown (up to 20,000 characters). `null` clears it. - startDate (body, number | null): Start date as a Unix timestamp in milliseconds. From 2000-01-01 to 2099-12-31; a stored date outside that range is accepted only when sent back unchanged. `null` clears it. - dueDate (body, number | null): Due date as a Unix timestamp in milliseconds. From 2000-01-01 to 2099-12-31; a stored date outside that range is accepted only when sent back unchanged. `null` clears it. - planned (body, number | null): Planned value (for example, estimated hours). `null` clears it. - actual (body, number | null): Actual value (for example, hours spent). `null` clears it. - extra (body, object | null): Extra display settings. Only `color` (a hex color code such as `#8CC230`, or `null`) is meaningful. - applyToOpenDescendants (body, boolean): When `true`, subtasks that are not completed (including those with no status) also get the new `statusId`. Requires `statusId`. Defaults to `false`. ## API Documentation: Delete task URL: https://repsona.com/api/delete-task-taskid DELETE /api/task/{taskId} Soft deletes a task and its descendants in the current space. - taskId (path, integer, required): ID of the task. ## API Documentation: List tasks in a project URL: https://repsona.com/api/get-project-projectid-task GET /api/project/{projectId}/task Returns tasks of the project page by page. Use parent_id to list subtasks (a task id) or only top-level tasks (root). Ordered by tree order (sortOrder) when parent_id is given, otherwise by id. Comma-separated id filters match any of the ids. - projectId (path, integer, required): ID of the project. - page (query, integer): Page number, starting at 1. - limit (query, integer): Items per page (up to 500). - parent_id (query, "root" | integer): Task id, or "root" for top-level tasks only - closed (query, true | false): `true` to return only completed tasks, `false` to return only open tasks. Omit to return both. - status_ids (query, string): Comma-separated ids - milestone_ids (query, string): Comma-separated ids - tag_ids (query, string): Comma-separated ids - responsible_user_ids (query, string): Comma-separated ids - ball_holder_ids (query, string): Comma-separated ids ## API Documentation: Create a task comment URL: https://repsona.com/api/post-task-taskid-comment POST /api/task/{taskId}/comment Accepts an editor doc (TipTap JSON) or a markdown string; stored as markdown. - taskId (path, integer, required): ID of the task. - doc (body, object): Comment body as a rich-text document (ProseMirror/Tiptap JSON). Send either `doc` or `markdown`. - markdown (body, string): Comment body as Markdown (up to 20,000 characters). Takes precedence over `doc` if both are sent. - parentId (body, integer | null): ID of the comment to reply to. Omit or `null` to post a top-level comment. ## API Documentation: Update my task comment URL: https://repsona.com/api/patch-task-comment-taskcommentid PATCH /api/task-comment/{taskCommentId} - taskCommentId (path, integer, required): ID of the task comment. - doc (body, object): Comment body as a rich-text document (ProseMirror/Tiptap JSON). Send either `doc` or `markdown`. - markdown (body, string): Comment body as Markdown (up to 20,000 characters). Takes precedence over `doc` if both are sent. ## API Documentation: Delete my task comment (soft delete) URL: https://repsona.com/api/delete-task-comment-taskcommentid DELETE /api/task-comment/{taskCommentId} - taskCommentId (path, integer, required): ID of the task comment. ## API Documentation: List task comments as a tree URL: https://repsona.com/api/get-task-taskid-comment GET /api/task/{taskId}/comment - taskId (path, integer, required): ID of the task. ## API Documentation: Export a project's tasks as CSV URL: https://repsona.com/api/get-project-projectid-task-export-csv GET /api/project/{projectId}/task/export-csv Exports the project's tasks as CSV. - projectId (path, integer, required): ID of the project. ## API Documentation: Import tasks from CSV URL: https://repsona.com/api/post-project-projectid-task-import-csv POST /api/project/{projectId}/task/import-csv Imports tasks from a CSV file into the project and returns the number of rows imported. Send `multipart/form-data` with the CSV in a part named `file` (up to 10 MB and 10,000 rows, UTF-8; a BOM is fine). The first row is a header and is skipped. Each row has these 14 columns in this order — the same layout as the CSV export, so you can edit an exported file and import it again: `id`, `name`, `description`, `responsibleUser`, `ballHoldingUser`, `startDate`, `dueDate`, `status`, `milestone`, `parent`, `tags`, `planned`, `actual`, `sortOrder` • `id`: the ID of a task in this project updates that task. Empty or any other value creates a new task (other rows can refer to the value in `parent`). • `name` is required. `description` is Markdown. • `responsibleUser`, `ballHoldingUser`: a user name or full name. Names that match no one are ignored. • `startDate`, `dueDate`: `YYYY-MM-DD`. • `status`, `milestone`: a status or milestone name in this project. Names that match nothing are left empty. • `parent`: a parent task ID, or an `id` value from the same file. Empty makes it a top-level task. • `tags`: comma-separated tag names. Missing tags are created. • `planned`, `actual`, `sortOrder`: numbers (planned, actual, sort order). When a row updates a task, empty cells clear those fields. - projectId (path, integer, required): ID of the project. - file (body, file, required): The CSV file to import. ## API Documentation: Duplicate a task and its subtasks URL: https://repsona.com/api/post-task-taskid-duplicate POST /api/task/{taskId}/duplicate Recursively duplicates a task and its subtasks. Comments and attachments are not duplicated. - taskId (path, integer, required): ID of the task. - copyToProjectId (body, integer | null): ID of the project to copy into. Omit or `null` to copy within the same project. Statuses and milestones are not inherited when copying to another project. - prefix (body, string): Text added before each copied task name, for example `Copy of `. Defaults to an empty string. - suffix (body, string): Text added after each copied task name. Defaults to an empty string. - startDate (body, integer | null): New start date as a Unix timestamp in milliseconds, from 2000-01-01 to 2099-12-31. The earliest date in the copied tree moves to this day and all other dates shift by the same amount. Only applies when `inherit.dueDate` is `true`. - inherit (body, object): Which properties of the original task the copies inherit. Anything not set to `true` is left empty. ## API Documentation: Follow a task URL: https://repsona.com/api/post-task-taskid-follow POST /api/task/{taskId}/follow - taskId (path, integer, required): ID of the task. ## API Documentation: Unfollow a task URL: https://repsona.com/api/delete-task-taskid-follow DELETE /api/task/{taskId}/follow - taskId (path, integer, required): ID of the task. ## API Documentation: List activity history for a task URL: https://repsona.com/api/get-task-taskid-history GET /api/task/{taskId}/history Returns the activity feed filtered to this task. - taskId (path, integer, required): ID of the task. - beforeId (query, integer): Cursor for paging. Pass the `nextBeforeId` of the previous response to get older history entries. Omit for the newest. - limit (query, integer): Number of history entries to return (1 to 50). ## API Documentation: Create task dependency URL: https://repsona.com/api/post-task-taskid-depends-on-predecessortaskid POST /api/task/{taskId}/depends-on/{predecessorTaskId} Creates a predecessor dependency between two tasks. - taskId (path, integer, required): ID of the task. - predecessorTaskId (path, integer, required): ID of the task that must be finished first (the predecessor). ## API Documentation: Remove a task dependency URL: https://repsona.com/api/delete-task-taskid-depends-on-predecessortaskid DELETE /api/task/{taskId}/depends-on/{predecessorTaskId} - taskId (path, integer, required): ID of the task. - predecessorTaskId (path, integer, required): ID of the task that must be finished first (the predecessor). ## API Documentation: Get one body revision of a task URL: https://repsona.com/api/get-task-taskid-revisions-revisionid GET /api/task/{taskId}/revisions/{revisionId} Returns the body before and after this revision. The diff is built from the pair. - taskId (path, integer, required): ID of the task. - revisionId (path, integer, required): ID of the revision, as returned by the list of revisions. ## API Documentation: List body revisions for a task URL: https://repsona.com/api/get-task-taskid-revisions GET /api/task/{taskId}/revisions Returns the activities that changed the body, newest first. - taskId (path, integer, required): ID of the task. - beforeId (query, integer): Cursor for paging. Pass the `nextBeforeId` of the previous response to get older revisions. Omit for the newest. - limit (query, integer): Number of revisions to return (1 to 50). ## API Documentation: Star a task URL: https://repsona.com/api/post-task-taskid-star POST /api/task/{taskId}/star - taskId (path, integer, required): ID of the task. ## API Documentation: Unstar a task URL: https://repsona.com/api/delete-task-taskid-star DELETE /api/task/{taskId}/star - taskId (path, integer, required): ID of the task. ## API Documentation: Replace task tags by names URL: https://repsona.com/api/put-task-taskid-tags PUT /api/task/{taskId}/tags Matches space tags by name (find-or-create with the given color) and replaces the task tag links. - taskId (path, integer, required): ID of the task. - names (body, string[], required): Names of the tags the task should have (up to 50). This replaces all current tags; an empty array removes them all. Tags that do not exist yet are created. - color (body, string | null): Color for newly created tags, such as `#8CC230`. Existing tags keep their color. Omit to use the default color. ## API Documentation: Create note URL: https://repsona.com/api/post-note POST /api/note Creates a note in the current space. - name (body, string | null, required): Title of the note (1 to 255 characters). - parentId (body, integer | null, required): ID of the parent note. Required: pass `null` to create a top-level note. - projectId (body, integer, required): ID of the project the note belongs to. - description (body, string | null): Body of the note as Markdown (up to 1,000,000 characters). Defaults to an empty body. - isWip (body, boolean | null): Marks the note as work in progress. Defaults to `false`. ## API Documentation: Get note URL: https://repsona.com/api/get-note-noteid GET /api/note/{noteId} Returns a single note in the current space. - noteId (path, integer, required): ID of the note. ## API Documentation: Update note URL: https://repsona.com/api/patch-note-noteid PATCH /api/note/{noteId} Updates a note in the current space. - noteId (path, integer, required): ID of the note. - name (body, string): Title of the note (1 to 255 characters). - parentId (body, integer | null): ID of the new parent note, to move the note. `null` moves it to the top level. - projectId (body, integer): ID of the project to move the note to. - description (body, string | null): Body of the note as Markdown (up to 1,000,000 characters). `null` clears it. - isWip (body, boolean | null): Marks the note as work in progress. ## API Documentation: Delete note URL: https://repsona.com/api/delete-note-noteid DELETE /api/note/{noteId} Soft deletes a note and its sub-notes in the current space. - noteId (path, integer, required): ID of the note. ## API Documentation: List notes in a project URL: https://repsona.com/api/get-project-projectid-note GET /api/project/{projectId}/note Returns notes of the project page by page. Use parent_id to list child notes (a note id) or only top-level notes (root). Ordered by tree order (sortOrder) when parent_id is given, otherwise by id. - projectId (path, integer, required): ID of the project. - page (query, integer): Page number, starting at 1. - limit (query, integer): Items per page (up to 500). - parent_id (query, "root" | integer): Note id, or "root" for top-level notes only - tag_ids (query, string): Comma-separated ids (any match) ## API Documentation: Create a note comment URL: https://repsona.com/api/post-note-noteid-comment POST /api/note/{noteId}/comment Accepts an editor doc (TipTap JSON) or a markdown string; stored as markdown. - noteId (path, integer, required): ID of the note. - doc (body, object): Comment as an editor document (ProseMirror JSON, with a `type: "doc"` root). Send either `doc` or `markdown`; `markdown` wins if both are given. - markdown (body, string): Comment as Markdown (up to 20,000 characters). Send either `doc` or `markdown`. - parentId (body, integer | null): ID of the comment to reply to. Omit or `null` to post a top-level comment. ## API Documentation: Update my note comment URL: https://repsona.com/api/patch-note-comment-notecommentid PATCH /api/note-comment/{noteCommentId} - noteCommentId (path, integer, required): ID of the note comment. - doc (body, object): Comment as an editor document (ProseMirror JSON, with a `type: "doc"` root). Send either `doc` or `markdown`; `markdown` wins if both are given. - markdown (body, string): Comment as Markdown (up to 20,000 characters). Send either `doc` or `markdown`. ## API Documentation: Delete my note comment (soft delete) URL: https://repsona.com/api/delete-note-comment-notecommentid DELETE /api/note-comment/{noteCommentId} - noteCommentId (path, integer, required): ID of the note comment. ## API Documentation: List note comments as a tree URL: https://repsona.com/api/get-note-noteid-comment GET /api/note/{noteId}/comment - noteId (path, integer, required): ID of the note. ## API Documentation: List activity history for a note URL: https://repsona.com/api/get-note-noteid-history GET /api/note/{noteId}/history Returns the activity feed filtered to this note. - noteId (path, integer, required): ID of the note. - beforeId (query, integer): Cursor for paging. Returns only entries with an ID lower than this; use `nextBeforeId` from the previous response. - limit (query, integer): Number of entries to return (1 to 50). Defaults to 20. ## API Documentation: Get one body revision of a note URL: https://repsona.com/api/get-note-noteid-revisions-revisionid GET /api/note/{noteId}/revisions/{revisionId} Returns the body before and after this revision. The diff is built from the pair. - noteId (path, integer, required): ID of the note. - revisionId (path, integer, required): ID of the revision, taken from the revisions list. ## API Documentation: List body revisions for a note URL: https://repsona.com/api/get-note-noteid-revisions GET /api/note/{noteId}/revisions Returns the activities that changed the body, newest first. - noteId (path, integer, required): ID of the note. - beforeId (query, integer): Cursor for paging. Returns only entries with an ID lower than this; use `nextBeforeId` from the previous response. - limit (query, integer): Number of entries to return (1 to 50). Defaults to 20. ## API Documentation: Star a note URL: https://repsona.com/api/post-note-noteid-star POST /api/note/{noteId}/star - noteId (path, integer, required): ID of the note. ## API Documentation: Unstar a note URL: https://repsona.com/api/delete-note-noteid-star DELETE /api/note/{noteId}/star - noteId (path, integer, required): ID of the note. ## API Documentation: Replace note tags by names URL: https://repsona.com/api/put-note-noteid-tags PUT /api/note/{noteId}/tags Matches space tags by name (find-or-create with the given color) and replaces the note tag links. - noteId (path, integer, required): ID of the note. - names (body, string[], required): Names of the tags to set (up to 50). Replaces all tags on the note; tags that do not exist yet are created. An empty array removes every tag. - color (body, string | null): Color for tags created by this request (up to 32 characters). Existing tags keep their color. Omit or `null` for the default color. ## API Documentation: Upload file(s) URL: https://repsona.com/api/post-file POST /api/file Uploads one or more files not tied to a project. Send multipart/form-data with one or more parts named `file`; each part's filename is kept as the file name (max 100 MB per file). - file (body, file, required): The file to upload. Its filename is kept as the file name. Repeat the part to upload several files. ## API Documentation: Upload file(s) to a project URL: https://repsona.com/api/post-project-projectid-file POST /api/project/{projectId}/file Uploads one or more files tied to a project. Send multipart/form-data with one or more parts named `file`; each part's filename is kept as the file name (max 100 MB per file). Requires project membership. - projectId (path, integer, required): ID of the project to attach the uploaded files to. You must be a member of it. - file (body, file, required): The file to upload. Its filename is kept as the file name. Repeat the part to upload several files. ## API Documentation: Download file (inline) URL: https://repsona.com/api/get-file-hash GET /api/file/{hash} Streams the file inline (1 year cache). Range requests are supported. - hash (path, string, required): Hash of the file (UUID), returned as `hash` when the file was uploaded. ## API Documentation: Download file (attachment / property) URL: https://repsona.com/api/get-file-hash-download GET /api/file/{hash}/{download} download=attachment stream, property=file metadata JSON. url mode is not supported (400). - hash (path, string, required): Hash of the file (UUID), returned as `hash` when the file was uploaded. - download (path, download | property | url, required): `download` returns the file as an attachment, `property` returns its metadata as JSON. `url` is not supported and returns 400. ## API Documentation: Delete file URL: https://repsona.com/api/delete-file-hash DELETE /api/file/{hash} Deletes a file. Only the uploader can delete it (admin cannot). - hash (path, string, required): Hash of the file (UUID), returned as `hash` when the file was uploaded. ## API Documentation: Attach a file to a note comment URL: https://repsona.com/api/put-note-comment-notecommentid-files-fileid PUT /api/note-comment/{noteCommentId}/files/{fileId} - noteCommentId (path, integer, required): ID of the note comment. - fileId (path, integer, required): ID of the file, returned as `id` when the file was uploaded. ## API Documentation: Detach a file from a note comment URL: https://repsona.com/api/delete-note-comment-notecommentid-files-fileid DELETE /api/note-comment/{noteCommentId}/files/{fileId} - noteCommentId (path, integer, required): ID of the note comment. - fileId (path, integer, required): ID of the file, returned as `id` when the file was uploaded. ## API Documentation: Attach a file to a note URL: https://repsona.com/api/put-note-noteid-files-fileid PUT /api/note/{noteId}/files/{fileId} - noteId (path, integer, required): ID of the note. - fileId (path, integer, required): ID of the file, returned as `id` when the file was uploaded. ## API Documentation: Detach a file from a note URL: https://repsona.com/api/delete-note-noteid-files-fileid DELETE /api/note/{noteId}/files/{fileId} - noteId (path, integer, required): ID of the note. - fileId (path, integer, required): ID of the file, returned as `id` when the file was uploaded. ## API Documentation: Attach a file to a task comment URL: https://repsona.com/api/put-task-comment-taskcommentid-files-fileid PUT /api/task-comment/{taskCommentId}/files/{fileId} - taskCommentId (path, integer, required): ID of the task comment. - fileId (path, integer, required): ID of the file, returned as `id` when the file was uploaded. ## API Documentation: Detach a file from a task comment URL: https://repsona.com/api/delete-task-comment-taskcommentid-files-fileid DELETE /api/task-comment/{taskCommentId}/files/{fileId} - taskCommentId (path, integer, required): ID of the task comment. - fileId (path, integer, required): ID of the file, returned as `id` when the file was uploaded. ## API Documentation: Attach a file to a task URL: https://repsona.com/api/put-task-taskid-files-fileid PUT /api/task/{taskId}/files/{fileId} - taskId (path, integer, required): ID of the task. - fileId (path, integer, required): ID of the file, returned as `id` when the file was uploaded. ## API Documentation: Detach a file from a task URL: https://repsona.com/api/delete-task-taskid-files-fileid DELETE /api/task/{taskId}/files/{fileId} - taskId (path, integer, required): ID of the task. - fileId (path, integer, required): ID of the file, returned as `id` when the file was uploaded. ## API Documentation: Create a project URL: https://repsona.com/api/post-project POST /api/project Creates a project with default statuses. The creator joins automatically. - key (body, string, required): Unique key of the project: 3 to 30 characters of letters, numbers, `_`, `-` and `.`. - name (body, string, required): Display name of the project (up to 255 characters). Falls back to `key` when empty. - memberUserIds (body, number[]): IDs of users to add as members besides you. Users outside the space and deactivated users are ignored. ## API Documentation: Get project detail URL: https://repsona.com/api/get-project-projectid GET /api/project/{projectId} Returns project profile, holiday settings and members. Project members only. - projectId (path, integer, required): The project ID. ## API Documentation: Update project settings URL: https://repsona.com/api/patch-project-projectid PATCH /api/project/{projectId} Updates profile (name/fullName/purpose), visibility (isPublic) and holiday settings. Admin + project member only. - projectId (path, integer, required): The project ID. - name (body, string): Project key: 3 to 30 characters of letters, numbers, `_`, `-` and `.`. Must be unique in the space. - fullName (body, string): Display name of the project (up to 255 characters). - purpose (body, string): Purpose or description of the project (up to 10,000 characters). - isPublic (body, boolean): Whether anyone with the public URL can view the task list without signing in. Member names and icons become public too. - holidays (body, object[]): Project-specific holidays (up to 366). Replaces the existing list. - regularHolidays (body, integer[]): Weekdays that are non-working every week, where 0 is Sunday and 6 is Saturday. Replaces the existing list. New projects use `[0, 6]`. - avatarUrl (body, null): Pass `null` to remove the project icon. - backgroundUrl (body, null): Pass `null` to remove the project background image. - productImageUrl (body, null): Pass `null` to remove the project product image. ## API Documentation: List projects in current space URL: https://repsona.com/api/get-project GET /api/project Returns either joined projects or all projects in the current space. - scope (query, joined | space): `joined` (default) returns the open projects you belong to. `space` returns every project in the space and is available to admins and owners only. ## API Documentation: Close or reopen a project URL: https://repsona.com/api/patch-project-projectid-closed PATCH /api/project/{projectId}/closed - projectId (path, integer, required): The project ID. - isClosed (body, boolean, required): `true` closes the project; `false` reopens it. Closed projects are hidden from project lists and the `@all` scope. ## API Documentation: Duplicate a project URL: https://repsona.com/api/post-project-projectid-duplicate POST /api/project/{projectId}/duplicate Duplicates statuses, milestones and the task tree (tags included). Task status/responsible/ball are cleared. Notes, teammates and Kaizen are not duplicated. - projectId (path, integer, required): The project ID. - key (body, string, required): Unique key of the new project: 3 to 30 characters of letters, numbers, `_`, `-` and `.`. - name (body, string, required): Display name of the new project (up to 255 characters). Falls back to `key` when empty. - userIds (body, integer[]): IDs of users to add as members of the new project (up to 500). You are always added. Users outside the space are ignored. - startDate (body, integer | null): Start day of the copied schedule, in epoch milliseconds, from 2000-01-01 to 2099-12-31. Task dates are shifted so the earliest start or due date of the source tasks falls on this day (UTC). Omit or pass `null` to keep the original dates. ## API Documentation: Add a member to a project URL: https://repsona.com/api/post-project-projectid-member-userid POST /api/project/{projectId}/member/{userId} - projectId (path, integer, required): The project ID. - userId (path, integer, required): The ID of the user. ## API Documentation: Remove a member from a project URL: https://repsona.com/api/delete-project-projectid-member-userid DELETE /api/project/{projectId}/member/{userId} - projectId (path, integer, required): The project ID. - userId (path, integer, required): The ID of the user. ## API Documentation: List members of a project (or of every joined project for @all) URL: https://repsona.com/api/get-project-projectid-member GET /api/project/{projectId}/member - projectId (path, "@all" | integer, required): A project ID, or `@all` for every open project you belong to. ## API Documentation: List recently completed tasks in a project URL: https://repsona.com/api/get-project-projectid-task-completed GET /api/project/{projectId}/task/completed - projectId (path, "@all" | integer, required): A project ID, or `@all` for every open project you belong to. - page (query, integer): Page number, starting at 1. Each page has up to 30 tasks. ## API Documentation: List tasks with activity in a date range URL: https://repsona.com/api/get-project-projectid-task-report GET /api/project/{projectId}/task/report - projectId (path, "@all" | integer, required): A project ID, or `@all` for every open project you belong to. - start (query, integer, required): Start of the range, in epoch milliseconds (inclusive). Activity older than your plan's retention period is not included. - end (query, integer, required): End of the range, in epoch milliseconds (inclusive). - page (query, integer): Page number, starting at 1. Each page has up to 30 tasks. ## API Documentation: List tasks marked for today in a project URL: https://repsona.com/api/get-project-projectid-task-today GET /api/project/{projectId}/task/today - projectId (path, "@all" | integer, required): A project ID, or `@all` for every open project you belong to. ## API Documentation: List tasks scheduled within a date range URL: https://repsona.com/api/get-project-projectid-task-upcoming GET /api/project/{projectId}/task/upcoming - projectId (path, "@all" | integer, required): A project ID, or `@all` for every open project you belong to. - start (query, integer, required): Start of the range, in epoch milliseconds. Tasks whose due date is on or after this time are returned. - end (query, integer, required): End of the range, in epoch milliseconds. Tasks whose start date is on or before this time are returned. - page (query, integer): Page number, starting at 1. Each page has up to 30 tasks. ## API Documentation: Create milestone URL: https://repsona.com/api/post-milestone POST /api/milestone Creates a new milestone for the project. - projectId (body, integer, required): The ID of the project the milestone belongs to. - name (body, string, required): Name of the milestone (1 to 50 characters). - dueDate (body, integer | null): Due date in epoch milliseconds, from 2000-01-01 to 2099-12-31. `null` (default) or `0` means no due date. ## API Documentation: Update milestone URL: https://repsona.com/api/patch-milestone-milestoneid PATCH /api/milestone/{milestoneId} Updates milestone attributes such as the name, due date and closed flag. - milestoneId (path, integer, required): The ID of the milestone. - name (body, string): Name of the milestone (1 to 50 characters). - dueDate (body, integer | null): Due date in epoch milliseconds. From 2000-01-01 to 2099-12-31; a stored date outside that range is accepted only when sent back unchanged. Pass `null` (or `0`) to remove the due date. - isClosed (body, boolean): Whether the milestone is closed (completed). ## API Documentation: Delete milestone URL: https://repsona.com/api/delete-milestone-milestoneid DELETE /api/milestone/{milestoneId} Deletes a milestone. Tasks referencing it are reset to no milestone. - milestoneId (path, integer, required): The ID of the milestone. ## API Documentation: List milestones in a project URL: https://repsona.com/api/get-project-projectid-milestone GET /api/project/{projectId}/milestone Returns all milestones of the project ordered by id. - projectId (path, integer, required): The project ID. ## API Documentation: Create status URL: https://repsona.com/api/post-status POST /api/status Creates a new status lane for the project. Admin/owner only. - projectId (body, integer, required): The ID of the project the status belongs to. - name (body, string, required): Name of the status (1 to 255 characters). - isClosed (body, boolean): Whether the status counts as done. Tasks in a closed status are treated as completed. Defaults to `false`. The new status is added at the end of its group. - color (body, string | null): Color of the status as a hex code such as `#3b82f6`. Defaults to `null` (no color). ## API Documentation: Update status URL: https://repsona.com/api/patch-status-statusid PATCH /api/status/{statusId} Updates the name/color/closed flag of a status. - statusId (path, integer, required): The ID of the status. - name (body, string): Name of the status (1 to 255 characters). - color (body, string | null): Color of the status as a hex code such as `#3b82f6`. Pass `null` to remove the color. - isClosed (body, boolean): Whether the status counts as done. Tasks in a closed status are treated as completed. Changing it moves the status between the open and closed groups. ## API Documentation: Delete status URL: https://repsona.com/api/delete-status-statusid DELETE /api/status/{statusId} Deletes a status. Tasks referencing it are reset to no status. Admin/owner only. - statusId (path, integer, required): The ID of the status. ## API Documentation: List statuses URL: https://repsona.com/api/get-status GET /api/status Returns statuses available in the current space or project. - projectId (query, "@all" | integer, required): The ID of the project to list statuses for, or `@all` for every project you belong to. ## API Documentation: Reorder statuses URL: https://repsona.com/api/post-status-reorder POST /api/status/reorder Updates lane ordering for project statuses. - projectId (body, integer, required): The ID of the project whose statuses are reordered. - open (body, integer[], required): IDs of the open (not done) statuses in the order they should appear. - closed (body, integer[], required): IDs of the closed (done) statuses in the order they should appear. Shown after the open statuses. ## API Documentation: Create a tag URL: https://repsona.com/api/post-tag POST /api/tag - name (body, string, required): Name of the tag (1 to 255 characters). Must be unique in the space. - type (body, tag | reaction | null): What the tag is used for: `tag` is a label you attach to tasks and notes, `reaction` is used for reactions on comments. `null` leaves it unspecified. Defaults to `tag`. - color (body, string | null): Color as a hex code such as `#3b82f6` (up to 20 characters). Defaults to `#8CC230` when omitted. ## API Documentation: Update a tag URL: https://repsona.com/api/patch-tag-tagid PATCH /api/tag/{tagId} - tagId (path, integer, required): The ID of the tag. - name (body, string): Name of the tag (1 to 255 characters). Must be unique in the space. - type (body, tag | reaction | null): What the tag is used for: `tag` is a label you attach to tasks and notes, `reaction` is used for reactions on comments. `null` leaves it unspecified. Omit to keep it unchanged. - color (body, string | null): Color as a hex code such as `#3b82f6` (up to 20 characters). Omit to keep it unchanged. ## API Documentation: Delete a tag URL: https://repsona.com/api/delete-tag-tagid DELETE /api/tag/{tagId} Removes the tag together with its task/note/project/user assignments. Admin only. - tagId (path, integer, required): The ID of the tag. ## API Documentation: List tags with usage counts URL: https://repsona.com/api/get-tag GET /api/tag ## API Documentation: Reorder tags URL: https://repsona.com/api/post-tag-reorder POST /api/tag/reorder Persists the given order as sortOrder. Admin/owner only, like tag deletion. - ids (body, integer[], required): Tag IDs in the order they should appear (up to 1,000). ## API Documentation: Update inbox notification status URL: https://repsona.com/api/patch-inbox-inboxid PATCH /api/inbox/{inboxId} Marks a notification unread or archived (legacy-compatible). - inboxId (path, integer, required): ID of the notification, from `id` in the inbox list. - status (body, unread | archived, required): New status. `unread` marks the notification unread; `archived` marks it as read and moves it out of the inbox. ## API Documentation: List inbox notifications (threaded) URL: https://repsona.com/api/get-inbox GET /api/inbox Groups notifications by their Task/Note and returns the latest per thread with subIds (legacy-compatible). - status (query, unread | archived): Which notifications to list: `unread` or `archived`. Defaults to `unread`. - page (query, integer): Page number, starting at 1. Each page has 10 threads. Defaults to 1. - until_id (query, integer): Return only notifications with an ID lower than this value. Use it to keep paging stable while new notifications arrive. - mention_only (query, boolean): Set to `true` to list only notifications that mention you. Defaults to `false`. ## API Documentation: Archive all unread inbox notifications URL: https://repsona.com/api/post-inbox-archive-all POST /api/inbox/archive-all - mention_only (query, boolean): Set to `true` to archive only the notifications listed with `mention_only` in the inbox list. Defaults to `false`. ## API Documentation: Unread inbox count URL: https://repsona.com/api/get-inbox-unread-count GET /api/inbox/unread-count ## API Documentation: Get current session context URL: https://repsona.com/api/get-me GET /api/me Returns the authenticated user, joined project ids, and project memberships within joined projects. ## API Documentation: Update my settings URL: https://repsona.com/api/patch-me PATCH /api/me Partially updates profile, locale, and notification settings of the current user. - name (body, string): Username (@name), 3 to 15 characters of letters, digits, `.`, `_` and `-`. Must be unique in the space. - fullName (body, string): Display name, up to 255 characters. - whatAreYouDoing (body, string): Short status message shown on your profile ("What are you doing?"), up to 10,000 characters. - languageId (body, integer): ID of the display language. - timeZoneId (body, integer): ID of the time zone. - emailNotification (body, all | mentions | none): Which notifications are sent by email: `all`, only `mentions`, or `none`. - notificationSettings (body, object): Notification settings. Only the keys you send are changed. - wantsUpdateInformation (body, boolean): Receive product update news by email. - wantsReminderEmail (body, boolean): Receive reminders by email. - extra (body, object): Display preferences. Only the keys you send are changed. - timeZoneCode (body, string): IANA time zone name, such as `Asia/Tokyo`. Sets the time zone like `timeZoneId`, but by name. ## API Documentation: List my tasks for the home columns URL: https://repsona.com/api/get-me-task-type GET /api/me/task/{type} Returns my tasks by type: today (marked for today), responsible, ballHolding, or following. Joined projects only. - type (path, today | responsible | ballHolding | following, required): Which tasks to list. `today`: tasks you marked for today. `responsible`: tasks you are responsible for. `ballHolding`: tasks where you hold the ball. `following`: tasks you follow. ## API Documentation: List users in the current space (admin/owner only) URL: https://repsona.com/api/get-user GET /api/user Returns non-sensitive user data for the authenticated user space. Members see other users only through shared project membership. ## API Documentation: Get a user profile by name URL: https://repsona.com/api/get-user-by-name-name GET /api/user/by-name/{name} Old UserController.byName compatible. Cross-space names are not found. - name (path, string, required): Username (@name) of the user, without the @. ## API Documentation: List completed tasks the user is responsible for URL: https://repsona.com/api/get-user-userid-task-completed GET /api/user/{userId}/task/completed - userId (path, integer, required): ID of the user. ## API Documentation: List tasks with activity by the user in a date range URL: https://repsona.com/api/get-user-userid-task-report GET /api/user/{userId}/task/report - userId (path, integer, required): ID of the user. - start (query, integer, required): Start of the range, in epoch milliseconds. - end (query, integer, required): End of the range (inclusive), in epoch milliseconds. ## API Documentation: List tasks the user marked for today URL: https://repsona.com/api/get-user-userid-task-today GET /api/user/{userId}/task/today - userId (path, integer, required): ID of the user. ## API Documentation: List tasks assigned to the user overlapping a date range URL: https://repsona.com/api/get-user-userid-task-upcoming GET /api/user/{userId}/task/upcoming - userId (path, integer, required): ID of the user. - start (query, integer, required): Start of the range, in epoch milliseconds. - end (query, integer, required): End of the range (inclusive), in epoch milliseconds. ## API Documentation: List members for administration URL: https://repsona.com/api/get-member GET /api/member - includeDeactivated (query, boolean): Set to `true` to include deactivated members. Defaults to `false`. ## API Documentation: Invite a new member URL: https://repsona.com/api/post-member-invite POST /api/member/invite Creates an inviting user and issues a password-set link. Re-invites refresh the link. no-login members can be created without an email and receive no mail. - email (body, string): Email address to send the invitation to. Required unless `role` is `no-login`. - role (body, admin | member | no-login, required): Role of the new member. `admin` can manage the space, `member` is a regular member, and `no-login` is a member who cannot log in (not billed, no email is sent). - name (body, string): Username (@name), 3 to 15 characters of letters, digits, `.`, `_` and `-`. Generated from the email address if omitted. - fullName (body, string): Display name, up to 255 characters. Defaults to the part of the email address before the @. - projectIds (body, integer[]): IDs of projects to add the member to (up to 100). ## API Documentation: Update member role or billing status URL: https://repsona.com/api/patch-user-userid PATCH /api/user/{userId} Changes either role or billingStatus (not both) along the member state transition table. Owner role changes are rejected here; use the transfer-ownership flow. - userId (path, integer, required): ID of the user to update. ## API Documentation: Get space settings URL: https://repsona.com/api/get-space GET /api/space Read is open to admins so that the admin settings page can be shown; every write stays owner-only. ## API Documentation: Search notes by criteria URL: https://repsona.com/api/get-search-note GET /api/search/note Returns matching notes within joined projects. result=ids returns all matching note ids; result=items returns paged display summaries. Multiple tag values are OR-ed. The literal value "none" means the note has no tags. WIP notes are included by default (includeWip=false to exclude). - projectId (query, "@all" | integer, required): A project ID, or `@all` for every open project you belong to. - q (query, string): Keywords to search for in the note title and body (up to 200 characters). Separate keywords with spaces (up to 5); a note must match all of them. - tagIds (query, string): Comma-separated tag IDs (up to 100). `none` matches notes without tags. - tagMode (query, and | exclude): How to apply `tagIds`. `and` returns notes that have any of the tags; `exclude` returns notes that do not. Defaults to `and`. - includeWip (query, 0 | 1 | true | false): Whether to include work-in-progress notes: `true`, `false`, `1` or `0`. Defaults to `true`. - result (query, ids | items): Shape of the response. `ids` returns matching note IDs; `items` returns note summaries, 30 per page. Defaults to `ids`. - page (query, integer): Page number, starting at 1. Used only when `result` is `items`. ## API Documentation: Search tasks by criteria URL: https://repsona.com/api/get-search-task GET /api/search/task Returns matching tasks within joined projects. result=ids returns all matching task ids; result=items returns paged display summaries. Multiple values in one field are OR-ed. Each field mode assigns the condition to a group: and (must match), or (cross-field any-match group), exclude (must not match; tasks with the field unset are kept unless "none" is listed). The literal value "none" means the field is unset. - projectId (query, "@all" | integer, required): A project ID, or `@all` for every open project you belong to. - q (query, string): Keywords to search for in the task name and description (up to 200 characters). Separate keywords with spaces (up to 5); a task must match all of them. - statusIds (query, string): Comma-separated status IDs (up to 100). `none` matches tasks with no value. - statusMode (query, and | or | exclude): How to combine `statusIds`. `and`: tasks matching any listed value, required together with the other conditions; `or`: tasks matching any listed value, where a match on any `or` condition is enough; `exclude`: tasks matching none of the values. Defaults to `and`. - milestoneIds (query, string): Comma-separated milestone IDs (up to 100). `none` matches tasks with no value. - milestoneMode (query, and | or | exclude): How to combine `milestoneIds`. `and`: tasks matching any listed value, required together with the other conditions; `or`: tasks matching any listed value, where a match on any `or` condition is enough; `exclude`: tasks matching none of the values. Defaults to `and`. - priorities (query, string): Comma-separated priorities (up to 100): `1` high, `2` medium, `3` low. `none` matches tasks with no priority. - priorityMode (query, and | or | exclude): How to combine `priorities`. `and`: tasks matching any listed value, required together with the other conditions; `or`: tasks matching any listed value, where a match on any `or` condition is enough; `exclude`: tasks matching none of the values. Defaults to `and`. - responsibleUserIds (query, string): Comma-separated user IDs of the assignee (up to 100). `none` matches tasks with no value. - responsibleUserMode (query, and | or | exclude): How to combine `responsibleUserIds`. `and`: tasks matching any listed value, required together with the other conditions; `or`: tasks matching any listed value, where a match on any `or` condition is enough; `exclude`: tasks matching none of the values. Defaults to `and`. - ballHoldingUserIds (query, string): Comma-separated user IDs of the ball holder (the person who has to act next) (up to 100). `none` matches tasks with no value. - ballHoldingUserMode (query, and | or | exclude): How to combine `ballHoldingUserIds`. `and`: tasks matching any listed value, required together with the other conditions; `or`: tasks matching any listed value, where a match on any `or` condition is enough; `exclude`: tasks matching none of the values. Defaults to `and`. - tagIds (query, string): Comma-separated tag IDs (up to 100). `none` matches tasks with no value. - tagMode (query, and | or | exclude): How to combine `tagIds`. `and`: tasks matching any listed value, required together with the other conditions; `or`: tasks matching any listed value, where a match on any `or` condition is enough; `exclude`: tasks matching none of the values. Defaults to `and`. - dueDateFrom (query, integer): Return only tasks due at or after this time, in Unix epoch milliseconds. - dueDateTo (query, integer): Return only tasks due at or before this time, in Unix epoch milliseconds. - hasDueDate (query, 0 | 1 | true | false): `true` returns only tasks with a due date, `false` only tasks without one (`true`, `false`, `1` or `0`). Omit for both. - includeClosed (query, 0 | 1 | true | false): Whether to include tasks in a closed status: `true`, `false`, `1` or `0`. Defaults to `false`. - overdueOnly (query, 0 | 1 | true | false): `true` returns only unfinished tasks whose due date has passed (closed tasks are always excluded). Defaults to `false`. - result (query, ids | items): Shape of the response. `ids` returns matching task IDs; `items` returns task summaries, 30 per page. Defaults to `ids`. - page (query, integer): Page number, starting at 1. Used only when `result` is `items`. ## API Documentation: List activity feed URL: https://repsona.com/api/get-feed GET /api/feed Returns a simple activity feed for the current user and joined projects. - beforeId (query, integer): Cursor for paging. Returns only activities with an ID lower than this; use the smallest `id` of the previous page. - limit (query, integer): Number of activities to return (1 to 50). Defaults to 20. - projectId (query, integer): Return only activities in this project. Omit to include every project you can access. - userId (query, integer): Return only activities by this user. Omit to include everyone. ## API Documentation: Add my reaction (idempotent per user/target/text) URL: https://repsona.com/api/post-reaction POST /api/reaction - targetType (body, project | taskComment | noteComment | user | activity | introduction, required): Type of the target the reaction is attached to. - targetId (body, integer, required): ID of the target (a project, comment, user, and so on, depending on `targetType`). - text (body, string, required): Reaction text, usually a single emoji (up to 64 characters, surrounding whitespace is trimmed). ## API Documentation: List reactions grouped by text URL: https://repsona.com/api/get-reaction-targettype-targetid GET /api/reaction/{targetType}/{targetId} Old ReactionController.groupBy compatible: [{ text, count, byMe }]. - targetType (path, project | taskComment | noteComment | user | activity | introduction, required): Type of the target the reaction is attached to. - targetId (path, integer, required): ID of the target (a project, comment, user, and so on, depending on `targetType`). ## API Documentation: Remove my reaction (idempotent) URL: https://repsona.com/api/delete-reaction DELETE /api/reaction - targetType (body, project | taskComment | noteComment | user | activity | introduction, required): Type of the target the reaction is attached to. - targetId (body, integer, required): ID of the target (a project, comment, user, and so on, depending on `targetType`). - text (body, string, required): Reaction text, usually a single emoji (up to 64 characters, surrounding whitespace is trimmed). ## API Documentation: List users who reacted with a given text URL: https://repsona.com/api/get-reaction-targettype-targetid-users GET /api/reaction/{targetType}/{targetId}/users Old ReactionController.userByText compatible. - targetType (path, project | taskComment | noteComment | user | activity | introduction, required): Type of the target the reaction is attached to. - targetId (path, integer, required): ID of the target (a project, comment, user, and so on, depending on `targetType`). - text (query, string, required): Reaction text to list the users of, for example an emoji. ## Webhook URL: https://repsona.com/api/webhook Repsona Webhook allows you to receive event notifications and trigger actions automatically. It sends events such as task or note updates, comment additions, status changes, etc. to a specified URL (HTTP request). Can be used for integration with other services and systems. ### Steps to receive a webhook You can initiate a webhook in the following steps - Create a Webhook endpoint. - Process (implement) the request from Repsona - Configure the Webhook endpoint with Repsona - Test the Webhook endpoint - Verify the Webhook signature (recommended) #### Create a Webhook endpoint Create an HTTP endpoint that can accept unauthenticated Webhook requests using the POST method. #### Process requests from Repsona (implementation) The endpoint must be configured to read an Event (Event) object of the type of event notification it receives; Repsona sends the event to the Webhook endpoint as part of a POST request with a JSON payload. The event should be parsed and return a 2xx status code. Use `type` (`.`) to determine what to do. ##### Example payload. ```json { "type": "Task.update", "event": { "id": 20004, "createdAt": 1673021684000, "task": { "id": 2, "status": { "id": 1, "name": "Todo", "isClosed": false } }, "user": { "id": 1, "name": "Reon", "fullName": "Reon Walls", "avatarUrl": "/dummy/avatar1.png" }, "project": { "id": 1, "name": "elephant-website", "fullName": "Elephant website development project" } }, "url": { "ref": "https://.repsona.com/p/1/status/2" } } ``` ##### Payload fields | Field | Description | |---|---| | `type` | `.`. For example, `Task.update` | | `event.id` / `event.createdAt` | The event ID and when it happened (UNIX time in milliseconds) | | `event.` | The target. The key is the model name with a lowercase first letter (`task`, `taskComment`, etc.). Always includes `id` | | `event.user` | The user who made the change | | `event.project` | The project of the target | | `url.ref` | The Repsona URL that opens the target | ##### Event types | `type` | `event.` | |---|---| | `Task.create` | `task`: `id`, `name`, `description`, `status`, `responsibleUser`, `ballHoldingUser`, `milestone`, `project`, `parent`, `priority`, `planned`, `actual`, `startDate`, `dueDate`, `tags` | | `Task.update` | `task`: `id` and the changed fields. Adding or removing files sends `id` and `files` | | `TaskComment.create` / `TaskComment.update` | `taskComment`: `id`, `comment`, `task`, `user` | | `Note.create` | `note`: `id`, `name`, `description`, `isWip`, `project`, `parent` | | `Note.update` | `note`: `id` and the changed fields (saving in the editor sends all the fields of `Note.create`). Adding or removing files sends `id` and `files` | | `NoteComment.create` / `NoteComment.update` | `noteComment`: `id`, `comment`, `note`, `user` | | `Reaction.create` | `reaction`: `id`, `text`, `target`, `reactedUser`, `project` | Fields that refer to other data are objects in the following shapes, not numeric IDs. | Field | Shape | |---|---| | `status` | `{id, name, isClosed}` | | `responsibleUser` / `ballHoldingUser` / `user` / `reactedUser` | `{id, name, fullName, avatarUrl}` (`name` is the username) | | `project` | `{id, name, fullName}` | | `milestone` / `parent` / `task` / `note` | `{id, name}` | | `files` | `[{id, hash, filename, size, type}]` | | `tags` | `[{id, name}]` | | `target` | `{type, id}`. `type` is one of `project` / `taskComment` / `noteComment` / `user` / `activity` / `introduction` | #### Configure the Webhook endpoint to Repsona. From the `Project Settings > Webhooks` page, set the webhook endpoint URL and the event type to be notified The webhook endpoint URL must be a publicly accessible HTTPS URL. #### Testing Webhook endpoints. From the `Project Settings > Webhooks` page, test data can be sent to the registered URL. You can check the contents and results of the transmission in the transmission history list. #### Checking the Webhook signature (recommended) Send events including a signature in the Repsona-Signature header. This allows you to verify that the event was sent by Repsona and not by a third party. To verify the signature, the signature secret must have been previously obtained from the webhook configuration. You can regenerate the signing secret in the webhook settings. The previous secret stops working immediately, so update your receiver with the new one. The Repsona-Signature header in the event contains a timestamp and a signature. The timestamp is preceded by `t=` and the signature by `s=`. ``` Repsona-Signature: t=1674544389,s=768b05feb76b244902ab3a4eca119abb98e530ccbc3f2c48e18a7ed3a1cea0ab ``` ##### Extracting timestamps and signatures from headers To get a list of elements, split the header using the `,` character as a delimiter. Then, separate each element using the `=` character as a delimiter to get the prefix-value pairs. The value of the `t` prefix corresponds to the timestamp, while the `s` corresponds to the signature. ##### Preparing the `signed_payload` string A `signed_payload` string is created by concatenating the following. - Timestamp (as a string) - Character `.` - The actual JSON payload (request body) ##### Determine the expected signature Calculate the HMAC using the SHA256 hash function. Use the endpoint's signature secret as key and the `signed_payload` string as message. ##### Comparing signatures Compares the signature in the header with the expected signature. If a match is found, the difference between the current timestamp and the received timestamp is calculated to determine if the difference is acceptable.