Sredify API
Read a company's SR&ED projects, people, assessments, hours and claims. Add recorded time, notes and links.
Overview
- Base address:
https://app.sredify.ca/api/v1. JSON in, JSON out. Version 1; anything that breaks your code would go in a new version. - The whole API as an OpenAPI 3.1 file, for code generators and tools like Postman.
- Two ways in. An API key is for a company's own scripts: an Admin creates it in the app. An app is for software used by many companies (a timesheet tool, a browser extension): you register it on Developers, and each company's Admin approves it.
- Each key or app works in one company. Everything is limited to that company.
- Company uses Boardway? Boardway already sends its approved hours, trials and notes here. Send that work to Boardway's API instead, never to both, or the same hours count twice.
- Never available: source code, GitHub or Jira tokens, sign-in details, member emails and roles, the company's history log, other companies.
Quick start: API key
A company Admin opens Account, Apps and API, clicks New key, picks the permissions and copies the key (shown once). Then:
# 1. A company Admin creates a key: Account, Apps and API, New key.
export SRED_KEY="sred_key_..."
# 2. Read the company's projects.
curl -s https://app.sredify.ca/api/v1/projects -H "Authorization: Bearer $SRED_KEY"
# 3. Record time (needs the "Record time" permission on the key).
curl -s https://app.sredify.ca/api/v1/hours \
-H "Authorization: Bearer $SRED_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"projectId":"p_robot","email":"rita@acme.example","date":"2026-03-14","hours":7.5,"description":"Grip force tests"}'Connect an app
Apps use OAuth 2.0 with PKCE (the standard way Google, Microsoft and others let apps connect). Register your app on Developers. Say what it does in at least one full sentence: people read it on the approval screen, and on a verified app a new description waits for Sredify to review it. Pick the kind:
- Browser extension or web page (no secret). The code runs on the person's computer, so it can't keep a secret. PKCE protects each sign-in.
- Server app (with a secret). The code runs on your servers. It sends PKCE and its secret, so a stolen code or refresh token is useless without the secret.
- Make a random
code_verifier(43 to 128 characters) and itscode_challenge= base64url(SHA-256(verifier)). - Send the person to
https://app.sredify.ca/oauth/authorizewithresponse_type=code,client_id,redirect_uri(exactly as registered),scope(space separated),state,code_challenge,code_challenge_method=S256. - They sign in and a company Admin approves. Only Admins can approve; Editors and View only see that they can't. They come back to your
redirect_uriwith?code=&state=, or?error=access_deniedif they cancel. Approval is once per company: when an Admin comes back and the company already approved every scope you ask for, there's no screen, they go straight back to you with a new code. Ask for a new scope and they see only that one. Addprompt=consentto always show the screen, orprompt=noneto never show it: you get?error=consent_required(orlogin_requiredwhen they aren't signed in) instead. - Within 10 minutes, POST the code to
https://app.sredify.ca/api/oauth/tokenonce. You get an access token (60 minutes) and a refresh token (30 days). - Call the API with
Authorization: Bearer sred_at_.... When it expires, POST the refresh token to the same address. The refresh token changes every time: save the new one. Using an old one again signs your app out of that company (we assume it was stolen). - To disconnect, POST the access or refresh token to
https://app.sredify.ca/api/oauth/revokewithtokenandclient_id(server apps addclient_secret), form-encoded or JSON. Every token from that sign-in stops working.
App icon. Upload it on Developers (you crop it square there), or send the image as the body of PUT https://app.sredify.ca/api/developers/apps/{id}/icon while signed in: PNG, JPEG or WebP, square, 128 to 1024 px, up to 512 KB (256 px is plenty). DELETE on the same address removes it. Sredify serves the icon itself, so the approval screen never loads anything from your server. No icon: people see the first letter of your app's name.
New apps show an “Unverified app” warning on the approval screen until Sredify checks who is behind them. Once an app is verified, a new name waits for Sredify to review it: people keep seeing the approved name until then. Return addresses must be https://, http://localhost, or an extension address (chrome-extension://, https://<id>.chromiumapp.org/).
Sredify Apps. A verified app can ask for a public page in Sredify Apps: open Store listing on Developers. It needs a developer name, a page address (fixed once listed), a one-line tagline, a support email or page, 2 to 6 screenshots (16:10, at least 1280 x 800, sample data only) and a Get link: the page on your site where an Admin lands from Get. Start the authorize step above from there, because the PKCE verifier has to stay with your app. Your website, privacy policy and Get link must be public https:// pages (not localhost). Sredify reviews the listing before it goes live, and later changes wait for review the same way. Screenshots are served by Sredify, like icons.
Browser extension sample
A complete Chrome extension background script: connect, keep tokens fresh, call the API, disconnect.
// background.js (Chrome extension, Manifest V3)
// manifest.json needs: "permissions": ["identity", "storage"]
// Register this extension's return address on /developers:
// chrome.identity.getRedirectURL() -> https://<extension-id>.chromiumapp.org/
const BASE = "https://app.sredify.ca";
const CLIENT_ID = "sred_app_..."; // from /developers
const REDIRECT = chrome.identity.getRedirectURL();
const b64url = (buf) =>
btoa(String.fromCharCode(...new Uint8Array(buf))).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
async function tokenRequest(params) {
const r = await fetch(BASE + "/api/oauth/token", {
method: "POST",
headers: { "Content-Type": "application/x-www-form-urlencoded" },
body: new URLSearchParams(params),
});
const j = await r.json();
if (!r.ok) throw new Error(j.error_description || j.error);
return j;
}
const save = (t) => chrome.storage.local.set({ tokens: { ...t, expiresAt: Date.now() + t.expires_in * 1000 } });
// 1. Connect: the person signs in and a company Admin approves.
async function connect(scope = "projects:read hours:write") {
const verifier = b64url(crypto.getRandomValues(new Uint8Array(32)));
const challenge = b64url(await crypto.subtle.digest("SHA-256", new TextEncoder().encode(verifier)));
const state = b64url(crypto.getRandomValues(new Uint8Array(16)));
const url = BASE + "/oauth/authorize?" + new URLSearchParams({
response_type: "code", client_id: CLIENT_ID, redirect_uri: REDIRECT, scope, state,
code_challenge: challenge, code_challenge_method: "S256",
});
const back = new URL(await chrome.identity.launchWebAuthFlow({ url, interactive: true }));
if (back.searchParams.get("state") !== state) throw new Error("State mismatch");
if (back.searchParams.get("error")) throw new Error(back.searchParams.get("error_description") || back.searchParams.get("error"));
await save(await tokenRequest({
grant_type: "authorization_code", code: back.searchParams.get("code"),
redirect_uri: REDIRECT, client_id: CLIENT_ID, code_verifier: verifier,
}));
}
// 2. A fresh access token. Refresh tokens change on EVERY use, and using an old
// one signs the app out (we treat it as stolen). So refresh one at a time.
let refreshing = null;
async function accessToken() {
const { tokens } = await chrome.storage.local.get("tokens");
if (!tokens) throw new Error("Not connected");
if (Date.now() < tokens.expiresAt - 60_000) return tokens.access_token;
refreshing ??= tokenRequest({ grant_type: "refresh_token", refresh_token: tokens.refresh_token, client_id: CLIENT_ID })
.then(async (t) => { await save(t); return t.access_token; })
.finally(() => { refreshing = null; });
return refreshing;
}
// 3. Call the API.
async function api(method, path, body) {
const r = await fetch(BASE + "/api/v1" + path, {
method,
headers: {
Authorization: "Bearer " + (await accessToken()),
...(body ? { "Content-Type": "application/json", "Idempotency-Key": crypto.randomUUID() } : {}),
},
body: body ? JSON.stringify(body) : undefined,
});
const j = r.status === 204 ? null : await r.json();
if (!r.ok) throw new Error(j?.error?.message || r.statusText);
return j;
}
// Example: record 7.5 hours for Rita today.
// await api("POST", "/hours", { projectId: "p_robot", email: "rita@acme.example",
// date: new Date().toLocaleDateString("en-CA"), hours: 7.5, description: "Grip force tests" });
// 4. Disconnect.
async function disconnect() {
const { tokens } = await chrome.storage.local.get("tokens");
if (tokens) await fetch(BASE + "/api/oauth/revoke", { method: "POST", body: new URLSearchParams({ token: tokens.refresh_token, client_id: CLIENT_ID }) });
await chrome.storage.local.remove("tokens");
}
Server app sample
# Server app: same flow, plus your client secret on every token request.
# 1. Send the person to /oauth/authorize (as above) with your own PKCE verifier + challenge.
# 2. They come back to your redirect address with ?code=...&state=... (check state).
# 3. Swap the code (within 10 minutes, once):
curl -s https://app.sredify.ca/api/oauth/token \
-u "$CLIENT_ID:$CLIENT_SECRET" \
-d grant_type=authorization_code \
-d code="$CODE" \
-d redirect_uri="https://yourapp.example.com/sred/callback" \
-d code_verifier="$VERIFIER"
# -> {"access_token":"sred_at_...","token_type":"Bearer","expires_in":3600,
# "refresh_token":"sred_rt_...","scope":"projects:read hours:write"}
# 4. When the access token expires (1 hour), refresh. Store the NEW refresh token.
curl -s https://app.sredify.ca/api/oauth/token \
-u "$CLIENT_ID:$CLIENT_SECRET" \
-d grant_type=refresh_token \
-d refresh_token="$REFRESH_TOKEN"
# 5. Call the API.
curl -s https://app.sredify.ca/api/v1/projects -H "Authorization: Bearer $ACCESS_TOKEN"Permissions
Ask only for what you need. People see each one in plain words before they approve.
- company:read
- Company details. Business info, CRA numbers, addresses, SR&ED profile.
- people:read
- People. Names, titles, employment type and dates, R&D role, qualifications. No pay.
- pay:read
- Pay. Pay type and amount per person, salary amounts in claims. Sensitive: only an Admin can approve it, and it stops if that person is no longer an Admin.
- projects:read
- Projects. Projects, their repos, team and Jira projects.
- assessments:read
- Assessments. Saved assessments, eligible work, criteria, commit and Jira references.
- hours:read
- Hours. Hours per person per project: estimated, recorded, and which counts.
- claims:read
- Claims. Contractors, materials, equipment, funding. Salary amounts and totals need Pay too.
- evidence:read
- Evidence. Recorded time, notes, links and supporting evidence, with where each came from.
- hours:write
- Record time. Add, change and remove its own time entries. Never changes estimates.
- evidence:write
- Add notes, links and supporting evidence. Add, change and remove its own notes and links, and supporting evidence on eligible work (meetings, references, engineering steps, tests, task cards) that a person confirmed. Supporting evidence backs up hours, it never adds to them.
- code:read
- Code notes. Sredify's notes on the code behind a report: what each file does, the facts and numbers it states, libraries, and full commit messages. Never the code itself.
- description:write
- Add wording to the project description. Add a sentence a person on the work confirmed to line 242, 244 or 246, for a Why this qualifies check that needs input, and undo its own. Never rewrites what's there. Each one shows the app's name in Sredify.
- description:rewrite
- Rewrite a line of the project description. Replace line 242, 244 or 246 for a Why this qualifies check that needs input, with a new line a person on the work compared side by side and approved, and undo its own. Sredify keeps the old line, shows the app's name and puts the old line back on Undo.
- assessments:write
- Change hours. Change eligible work hours and each person's share of them, with a reason. Every change shows the app's name and can be undone.
- claims:write
- Add material costs. Add, change and remove its own material rows on a project's claim (materials used up or changed by the work), each linked to the trials it was used in. Every row shows the app's name in Sredify. Never touches salaries, contractors or other rows.
Webhooks
Instead of asking every few minutes, let Sredify tell you the moment something changes. Each message only says what changed (ids, version, who) and where to fetch it. Fetch the item with your key or token as usual, so you only ever see what your permissions allow.
- Company webhooks: an Admin adds one in Account, Apps and API, Webhooks. It uses one of the company's API keys: the key's permissions decide which changes may go out.
- App webhooks: set one webhook address for your app on Developers. It fires for every company that connected your app, only for changes that company approved you to read.
- Addresses must be
https://on the public internet. Sredify doesn't follow redirects, waits 10 seconds at most, and counts any 2xx answer as delivered.
- Project changed needs
projects:read project.createdproject.updatedproject.deleteddata:id,version,by- Assessment saved needs
assessments:read assessment.savedassessment.deleteddata:id,repoKey,version,by- Hours changed needs
hours:read hours.changeddata:projectId,cause,repoKey(when there is one),assessmentId(when there is one),evidenceId(when there is one),by- Evidence added, changed or removed needs
evidence:read evidence.addedevidence.updatedevidence.removedevidence.restoreddata:id,projectId,itemType,version,by- Claim updated needs
claims:read claim.updateddata:projectId,version,by- People changed needs
people:read people.changeddata:version,by
{
"id": "cmv5xadxm001u67412d8ldaae",
"type": "evidence.added",
"createdAt": "2026-10-12T17:04:11.000Z",
"company": "cmv5x9k7600006735fqm3zvke",
"data": {
"id": "ev_mf2k1q_a8c3d1",
"projectId": "p_robot",
"itemType": "note",
"version": 1,
"by": {
"type": "app",
"name": "Acme Timer",
"approvedBy": "Ann Admin"
}
},
"fetch": "/api/v1/evidence/ev_mf2k1q_a8c3d1"
}Check every message. Each one has a Sredify-Signature: t=<time>,v1=<signature> header: an HMAC-SHA256 of t.body with your signing secret (shown once when the webhook is added). Refuse messages older than 5 minutes. Sredify-Event has the type and Sredify-Delivery a unique id (the same id if a message is resent).
import { createHmac, timingSafeEqual } from "node:crypto";
// Use the RAW request body (the exact text), not a re-encoded object.
export function fromSredify(rawBody, signatureHeader, secret) {
const m = /^t=(\d+),v1=([0-9a-f]{64})$/.exec(signatureHeader || "");
if (!m) return false;
const [, t, sig] = m;
if (Math.abs(Date.now() / 1000 - Number(t)) > 300) return false; // older than 5 minutes
const want = createHmac("sha256", secret).update(`${t}.${rawBody}`).digest("hex");
return timingSafeEqual(Buffer.from(want), Buffer.from(sig));
}
// Express: app.post("/sredify", express.text({ type: "*/*" }), (req, res) => {
// if (!fromSredify(req.body, req.get("Sredify-Signature"), process.env.SREDIFY_WEBHOOK_SECRET)) return res.sendStatus(401);
// const msg = JSON.parse(req.body);
// res.sendStatus(200); // answer fast, then fetch msg.fetch with your key or token
// });- Retries. A failed message is tried again after 10 seconds and 1 minute, then after 30 minutes, 2 hours and 6 hours. After 5 failures in a row the webhook pauses; messages wait and go out when someone clicks Resume.
- Order and repeats. Messages can arrive late or twice. Use the
versionand fetch the item: the API always has the latest. - Bursts. Changes made in the app save every few seconds, so repeat changes to the same item inside 15 seconds go out as one message with the newest version.
- Who.
data.byis{ type, name }:person,keyorapp. App and key changes also carryapprovedBy, who connected the app or made the key. - Hours.
hours.changedgoes out whenever anything that decides hours changes: recorded time, an assessment's hours, a project's team or repos, a claim's dates, or the company's hours settings and People.data.causesays which. With aprojectIdonly that project moved; withprojectId: nullany project may have moved, so read/hoursfor each one. An assessment shared by several projects sends one message per project. - Apps: when a company leaves. An app's webhook always gets
app.disconnected(no need to tick it) when a company's Admin revokes the app or the company is deleted.data.reasonisrevokedorcompany_deletedandfetchis null: its tokens already stopped, so delete what you keep for that company. Unsent messages from that company are dropped. - Send test sends a
webhook.testmessage right away, and Deliveries shows the last 20 messages with your server's answer, kept 30 days.
Rules
- Who you act as. A key acts as the Admin who created it, an app as the Admin who approved it, with their current role and never more than the permissions given. If that person becomes View only, writes stop. If they leave the company, the key or app stops.
- Labels. Everything you add shows in the app with your key's or app's name and the Admin behind it, for example “Acme Timer · approved by Ann Admin”.
- Recorded time replaces the estimate for that person on that day; it is never added on top. Estimates can't be changed through the API.
- Who time can be recorded for. Someone on the company's People list and on the project: ticked on its Team, or linked to a GitHub contributor with commits in its repos.
- Limits per day. More than 0 and at most 24 hours per entry; a person's recorded total for the day, across all projects, can't go over the company's daily maximum (
GET /org,sred.maxHoursPerDay). No future dates. - How the time was captured, and who approved it. Send
capture(timerormanual) andapproval({ by: "person" }, or{ by: "admin", adminName, reason }when an Admin approved it for someone) withPOST /hours. Both show on the Claim screen and print in the claim PDF, for example “Recorded with a timer · Approved by Dana (Admin) for Priya: on leave”. - Locked periods. Once a period is filed, an Admin locks its hours (
GET /org,sred.hoursLockedThrough). Adding, changing or removing time on or before that day answers409 period_locked. - Your own ids for trials. Send
externalIdwith a trial. Sending the sameexternalIdagain updates that trial (200, same id and TRIAL number) instead of adding a second one. - Your own items only. You can change or remove only what your key or app added. Removing keeps the item in history with your reason.
- Revoking. An Admin can revoke a key or app at any time, and can also remove everything an app added.
Requests and responses
- Dates are
yyyy-mm-dd; times are ISO 8601 UTC. Money is in Canadian dollars. - Lists that can be long return
{ data, nextCursor }. Pass?cursor=for the next page;nextCursorisnullon the last one.?limit=1 to 200, default 50. - Syncing evidence:
GET /evidence?since=with the time of your last sync returns only changed items (oldest first), including removals withincludeRemoved=true. - Caching: every GET returns an
ETag. Send it back asIf-None-Matchand get304 Not Modifiedwhen nothing changed. - Retries: send an
Idempotency-Keyheader on POST. Sending the same key again within 24 hours returns the first result instead of adding twice, with the headerIdempotent-Replayed: true. - Request limits: 120 a minute per API key, 600 a minute per app (across all companies). Over that you get
429withRetry-After(seconds to wait),X-RateLimit-Limit(your limit a minute) andX-RateLimit-Remaining: 0. - Browsers: CORS is open, so web pages and extensions can call the API directly. Sign-in cookies are never accepted, only tokens.
- Every call is logged for 90 days (which key or app, address, result, time). Admins see the usage of each key and app.
Errors
Errors are { "error": { "code", "message" } }. Branch on code; show message to people. The token endpoint follows the OAuth standard instead: { "error", "error_description" } with codes like invalid_grant and invalid_client.
- 400 bad_json
- The body isn't valid JSON.
- 400 bad_range
- from/to missing one, not yyyy-mm-dd, or from after to.
- 400 bad_cursor
- The cursor isn't one we gave you.
- 400 bad_since
- since isn't a date.
- 401 unauthorized
- No Authorization header, or an unknown API key.
- 401 key_revoked
- An Admin revoked the key.
- 401 key_expired
- The key reached its expiry date.
- 401 invalid_token
- Unknown or revoked app access token.
- 401 token_expired
- The app access token is over 1 hour old. Use the refresh token.
- 401 app_revoked
- The company revoked your app.
- 403 missing_scope
- The key or app doesn't have that permission.
- 403 role_too_low
- The Admin behind the key or app now has a role that doesn't allow it (for example View only can't write).
- 403 creator_removed
- The person who created the key left the company.
- 403 approver_removed
- The Admin who approved the app left the company.
- 403 app_suspended
- Sredify suspended the app.
- 403 company_suspended
- Sredify suspended the company.
- 403 account_suspended
- Sredify suspended the person who made the key or approved the app.
- 403 not_yours
- You tried to change an item someone else added.
- 404 not_found
- No such item in this company.
- 409 removed
- The item was already removed.
- 410 removed
- GET /evidence/{id}/files/{fileId}: the file was removed.
- 413 too_large
- A file over the size limit.
- 415 unsupported_type
- A file type Sredify doesn't keep (see POST /evidence/{id}/files).
- 422 type_mismatch
- The file's first bytes don't match its Content-Type.
- 422 size_mismatch
- An upload link got a file of another length than the size you sent. Start a new upload.
- 409 not_uploaded
- POST .../complete before anything was PUT to the upload link.
- 503 files_unavailable
- File storage isn't set up on this server (test and local servers).
- 422 too_many_files
- The item already keeps the most files it can. Remove one first.
- 422 company_storage_full
- The company's files are at the storage limit.
- 409 conflict
- Someone changed the same item at the same moment. Try again.
- 409 period_locked
- Adding, changing or removing time on a day on or before the company's lock (GET /org: sred.hoursLockedThrough): that period is filed. An Admin can move the lock in Sredify.
- 409 external_id_taken
- A trial's externalId your key or app already used on another project. A trial can't move projects: remove it there, or send a new externalId.
- 409 card_key_taken
- A task card key (PRJ-4821) that another card in the same report already has (removed cards keep theirs). Pick another number.
- 409 changed_since_read
- You sent the version you read and the report changed since. Read it again.
- 404 nothing_to_undo
- Your app or key has no hours changes on that item.
- 422 not_past_report
- Code notes (GET /assessments/{id}/code-facts) are for past reports; a planning report has no commits yet.
- 422 not_past_work
- Hours per person can only change on past work reports.
- 422 card_prefix_is_jira
- A task card key whose prefix is one of the project's Jira keys (ARM-1234 on a project linked to ARM): a card must never read as a Jira ticket.
- 422 jira_connected
- A task card on a report whose Ticket evidence is Jira tickets (cardsAllowed false): its Jira tickets are the evidence. A person can switch the report to Task cards or Both in Sredify.
- 422 minutes_over_hours
- A meeting or test longer than a person's hours on the work item that day (activity, shares and recorded time). Each person's days on GET /assessments/{id} (eligibleWork[].people[].days) are what it checks against: pick a day that fits, lower the minutes, or record the time they really worked (POST /hours, hours:write) first.
- 422 confirmer_not_on_work
- suggestion.confirmedByPersonId is someone who didn't work on the item (not in its people with ticked true or a share).
- 422 unknown_person
- No one with that personId on People.
- 422 not_on_project
- The person isn't on the report's project (Team or a GitHub contributor in its repos).
- 422 person_not_counted
- The person has no GitHub author linked on People and their research share is 0% (or they have no name), so a share for them can't count in the claim.
- 422 not_involved
- The person's R&D role on People is Not involved: they can't be given hours.
- 422 not_ticked
- The person has no GitHub and isn't ticked on this item (Who did this work, or its Jira tickets), so they can't get a research share on it.
- 422 research_over_cap
- Research shares (people without GitHub) on the item would add up to more than researchCapHours.
- 422 below_recorded
- A share less than the person's logged Jira time on the item.
- 422 shares_over_item
- The shares on an item add up to more than its hours.
- 422 invalid
- The data breaks a rule (unknown person, not on the project, too many hours, future date, ...). The message says which.
- 429 rate_limited
- Too many requests. Wait for Retry-After seconds.
- 500 save_failed
- Something went wrong saving. Safe to retry with the same Idempotency-Key.
- 500 server_error
- Something went wrong on our side. Try again in a moment; if it keeps happening, tell us the time and the request.
Endpoints
In the samples, $TOKEN is an API key or an app access token.
/api/v1/orgThe company
Company profile and SR&ED settings.
Permission: company:read
curl -s "https://app.sredify.ca/api/v1/org" \
-H "Authorization: Bearer $TOKEN"{
"id": "cmorg1",
"name": "Acme Robotics Inc.",
"business": {
"legalName": "Acme Robotics Inc.",
"operatingName": "Acme Robotics",
"businessNumber": "123456789",
"industry": "Robotics",
"naics": "333249"
},
"sred": {
"ccpc": true,
"fiscalYearEnd": "12-31",
"claimedBefore": false,
"maxHoursPerDay": 10,
"hoursLockedThrough": "2025-12-31"
}
}/api/v1/peoplePeople
Everyone on the company's People list. Pay is included only with pay:read.
Permission: people:read
- Add pay:read to get each person's pay type and amount.
curl -s "https://app.sredify.ca/api/v1/people" \
-H "Authorization: Bearer $TOKEN"{
"data": [
{
"id": "per_rita",
"name": "Rita Robotics",
"email": "rita@acme.example",
"title": "Engineer",
"department": "R&D",
"employmentType": "full-time",
"startDate": "2024-01-08",
"endDate": null,
"province": "ON",
"stillHere": true,
"endDateEstimated": false,
"rdRole": "technical",
"sredPercent": 80,
"researchSharePct": 20,
"researchShareFrom": "role",
"specifiedEmployee": false,
"armsLength": true,
"degree": "BEng",
"field": "Mechatronics",
"yearsExperience": "6",
"githubAuthor": "Rita R",
"githubAuthors": [
"Rita R",
"rita-laptop"
],
"jiraAccountId": null
}
]
}/api/v1/projectsProjects
Every project in the company.
Permission: projects:read
curl -s "https://app.sredify.ca/api/v1/projects" \
-H "Authorization: Bearer $TOKEN"{
"data": [
{
"id": "p_robot",
"name": "Robot arm",
"description": "",
"repos": [
{
"key": "acme/robot",
"language": "TypeScript"
}
],
"teamIds": [
"per_rita"
],
"jiraProjectKeys": [
"ARM"
],
"workstreams": [],
"industry": {
"sector": "Mechanical / Electrical Engineering",
"pack": "engineering",
"from": "project"
},
"createdAt": "2026-01-04T17:00:00.000Z",
"updatedAt": "2026-03-01T17:00:00.000Z"
}
]
}/api/v1/projects/{id}One project
A single project.
Permission: projects:read
curl -s "https://app.sredify.ca/api/v1/projects/p_robot" \
-H "Authorization: Bearer $TOKEN"/api/v1/assessmentsAssessments
Saved assessments, newest first, with hours per piece of eligible work (past) or per angle and task (future). Long text (files, implementation and testing notes, conclusion, caveats) is left out here; get one assessment for that. Source code is never included.
Permission: assessments:read
Query
- projectId
- Only assessments of this project's repos.
- repo
- Only this repo (owner/repo).
- kind
- past or future.
- limit
- Items per page, 1 to 200 (default 50).
- cursor
- nextCursor from the previous page.
curl -s "https://app.sredify.ca/api/v1/assessments" \
-H "Authorization: Bearer $TOKEN"/api/v1/assessments/{id}One assessment
A single assessment with the full report: for past work the eligible work with changed file names, verdict, conclusion, not-eligible list and caveats; for future plans the picked angles with each task's hours, implementation and testing notes, files and reasoning. Source code is never included.
Permission: assessments:read
- Hours: hours = after edits made in the app (Adjust hours), originalHours = what the assessment first found, adjustmentReason = the reason typed with the edit (null when not edited). totalHours sums them.
- Future (planning) assessments: angleDetails lists only the angles picked for the report, in report order, each with its tasks (features).
- Past assessments: verdict, eligibleWork (with evidence: commits, file names, Jira keys), contributors, conclusion, notEligible and caveats instead of angleDetails.
- Past assessments: each eligibleWork item lists its people (who worked on it, with commits and hours). Their hours come from the same split as the claim, so they match its salary split. When the SR&ED profile's hours split is off, hours are null and only commits are given.
curl -s "https://app.sredify.ca/api/v1/assessments/as_123" \
-H "Authorization: Bearer $TOKEN"{
"id": "as_plan",
"repo": "acme/robot",
"projectIds": [
"p_robot"
],
"kind": "future",
"title": "Sub-second re-planning",
"createdAt": "2026-03-01T17:00:00.000Z",
"since": null,
"until": null,
"adjusted": true,
"summary": "Two lines of experimental work aimed at re-planning 10,000 stops in under a second.",
"angles": [
"angle-1"
],
"totalHours": 180,
"originalTotalHours": 200,
"angleDetails": [
{
"id": "angle-1",
"title": "Incremental graph re-routing",
"summary": "Only re-solve the parts of the route graph a traffic change touches.",
"eligibility": {
"eligible": true,
"criterion": "Technological uncertainty",
"why": "No known method met the latency target at this scale."
},
"hours": 180,
"originalHours": 200,
"features": [
{
"name": "Partitioned route graph",
"hours": 100,
"originalHours": 120,
"adjustmentReason": "Reuse the existing partitioner",
"hoursRationale": "Three schemes to build and benchmark.",
"implementation": "Split the graph into regions and cache boundary costs.",
"testing": "Benchmark re-plan latency at 1k, 5k and 10k stops.",
"proposedFiles": [
"src/graph/partition.rs"
],
"reasoning": {
"necessity": "A full re-solve takes 9 s at 10k stops.",
"efficiency": null,
"latency": "Target under 1 s.",
"optimization": null
}
},
{
"name": "Change propagation",
"hours": 80,
"originalHours": 80,
"adjustmentReason": null,
"hoursRationale": null,
"implementation": "Push traffic deltas only into affected regions.",
"testing": "Compare against a full re-solve on recorded traffic days.",
"proposedFiles": [
"src/graph/propagate.rs"
],
"reasoning": null
}
]
}
],
"conclusion": "The angle shows a clear technical unknown and a planned set of experiments, which is what SR&ED looks for."
}/api/v1/assessments/{id}/code-factsNotes on the code behind a report
Sredify's saved notes on the code behind a past report, per eligible work item: the item's commits with their full messages, files changed and code spots, and notes on the item's files (what each does, the facts and numbers it states, libraries). Use them as real facts when drafting answers to the report's checks. Never the code itself: no changes (patches), no file contents.
Permission: code:read
- Read from what Sredify already saved when the report read the repos: no GitHub call and no AI call, so it answers quickly and costs nothing. Notes appear once the project report has read the files (notedAt null = nothing read yet).
- Only notes on this company's own repos. Past reports only (422 not_past_report for a planning report).
curl -s "https://app.sredify.ca/api/v1/assessments/p_robot/code-facts" \
-H "Authorization: Bearer $TOKEN"{
"assessmentId": "as_proj",
"notedAt": "2026-03-02T17:00:00.000Z",
"items": [
{
"workId": "partitioned-graph",
"title": "Partitioned route graph",
"commits": [
{
"sha": "9a1c03be5f2d4e7a8b9c0d1e2f3a4b5c6d7e8f90",
"date": "2026-02-11",
"repo": "acme/route-engine",
"message": "Revert \"Re-plan the whole graph on a closure\"\n\nThis reverts commit 652395f3. A full re-plan took 3.8 s.",
"revert": true,
"files": [
{
"path": "src/graph/replan.rs",
"additions": 3,
"deletions": 41,
"spots": [
"fn replan"
]
}
]
}
],
"files": [
{
"path": "tests/graph/partition_test.rs",
"repo": "acme/route-engine",
"sha": "4f1e2d3c4b5a69788796a5b4c3d2e1f0a9b8c7d6",
"kind": "test",
"signal": "rd",
"what": "Checks a closed road only re-plans its own district.",
"facts": [
"Re-plan under 1 s at 10k stops."
],
"libs": [
"pathfinding"
]
}
]
}
],
"numbers": [
{
"value": "3.8 s",
"text": "This reverts commit 652395f3. A full re-plan took 3.8 s.",
"workId": "partitioned-graph",
"source": {
"kind": "commit",
"sha": "9a1c03be5f2d4e7a8b9c0d1e2f3a4b5c6d7e8f90",
"repo": "acme/route-engine"
}
}
],
"libs": [
{
"name": "pathfinding",
"files": 1
}
]
}/api/v1/assessments/{id}/work/{workId}Change eligible work hours
Change a past report's eligible item: its total hours, each person's share of them, or both. The change counts in the claim right away and shows your app's name and reason in Sredify and on the claim PDF.
Permission: assessments:write
- Admins only: assessments:write is a sensitive permission, like pay:read. It stops working if the Admin who approved the app is no longer an Admin.
- Newest change wins, whoever made it (a person in Sredify or an app). What it replaced is kept (replaced[]) and can be restored in Sredify.
- A person's share: they must be on People, on the project (ticked on its Team or a GitHub contributor in its repos), and have a GitHub author linked (canHaveShare), or, without GitHub, be ticked on the item for a research share (canHaveResearchShare; all research shares on the item at most researchCapHours). Never for someone whose R&D role is Not involved. Not less than their logged Jira time on the item (minHours).
- Shares on an item can't add up to more than its hours. Everyone without a share is scaled to fit what is left, so hours by authors not on People can be given to the team.
- More than the activity supports (over minHours + roomHours) is accepted and flagged: overActivity in the answer, overActivityHours on the person, and a note in the app and PDF.
Body (JSON)
- reason *string
- Why the hours change. Required. Shown in Sredify and the claim PDF.
- hoursnumber
- The item's total hours. Leave out to keep it.
- peoplearray
- Each person's share of the item. Leave out people you don't change.
- versionnumber
- Optional: the report version you read (GET /assessments/{id}: version). If it changed since, you get 409 changed_since_read instead of overwriting. Send it here, not as an If-Match header.
curl -s -X PATCH "https://app.sredify.ca/api/v1/assessments/p_robot/work/{workId}" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"reason":"Placed 12 h of unplaced hours by activity: Rita +4.75 h, Omar +7.25 h","people":[{"personId":"per_rita","hours":22.75},{"personId":"per_omar","hours":17.25}]}'/api/v1/assessments/{id}/work/{workId}/changesUndo your hours changes
Undo your app's (or key's) current changes on an eligible item: each value goes back to what it replaced.
Permission: assessments:write
- Only changes your own app or key made. If someone changed the item after you, you get 403 not_yours (newest change wins).
curl -s -X DELETE "https://app.sredify.ca/api/v1/assessments/p_robot/work/{workId}/changes?reason=Entered%20twice" \
-H "Authorization: Bearer $TOKEN"/api/v1/assessments/{id}/wordingAdd wording for a check (whole project)
Add a sentence for the whole project to the project description line a Why this qualifies check reads (242, 244 or 246), for a check that needs input on a project report (checks on GET /assessments/{id}). The check judges the project as one group, so this is the way to answer it: one sentence per check, written from every item's work. It goes at the end of the line as its own paragraph; nothing already there changes. Sredify shows your app's name, who confirmed it and any AI numbers kept, and the owner runs Check again.
Permission: description:write
- Project reports only (422 not_project_report), and only for a check that needs input (422 check_holds). No description for the claim dates yet: 409 no_description.
- The person confirming must have worked on at least one item of the report (422 confirmer_not_on_work). evidenceIds must be confirmed evidence on the report's items.
- One sentence per check. Your app's older per-item sentences for the check are replaced by this one (their ids come back in replaced). A project sentence already there, or another app's, gives 409 check_has_wording: undo it first, then add the new one.
- Text with [[...]] markers left is refused (422 unchecked_numbers): every AI filler number is ticked (send it in aiNumbers) or replaced first.
- The same sentence twice: 409 already_added. Over the line's word limit is accepted and flagged (overCap).
Body (JSON)
- check *string
- A check that needs input on this report (checks[].key). One of: feature, business, baseline, field, hypotheses, failures, contemporaneous, advancement.
- text *string
- Plain text, 40 to 1,200 characters. No [[...]] markers: every AI number must be ticked or replaced first.
- confirmedByPersonId *string
- The person who confirmed it (their id on People): on this item, or on any item of the report for the whole project.
- evidenceIdsarray
- Confirmed supporting evidence it comes from (up to 12): on this item, or on any item of the report for the whole project. The check reads these first, in full.
- aiNumbersarray
- AI filler numbers kept as they were (up to 12), each exactly as written in text.
curl -s -X POST "https://app.sredify.ca/api/v1/assessments/p_robot/wording" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"check":"field","text":"The plugin vendor's options for a fresh fix and Apple's CoreLocation guidance were checked; neither stated how to get a fresh GPS fix within 5 s of a resume (652395f3, 9a1c03be).","confirmedByPersonId":"per_rita","evidenceIds":["ev_mf2k1q_a8c3d1"],"aiNumbers":[]}'/api/v1/assessments/{id}/wording/previewTest wording before adding it (whole project)
A test run of the Why this qualifies check for the whole project: your sentences go at the end of their lines on a copy of the project description, your draft evidence goes first, and the same check as Check again runs once. Send every check's sentence together, so the check reads them the way it will after they're added. Nothing is saved: not the description, not the check, not the evidence.
Permission: assessments:read
- Project reports only (422 not_project_report). No description for the claim dates yet: 409 no_description.
- The check is AI (the same prompt and model as Check again), so a real Check again can rarely judge differently. It only changes the report when a person adds the wording and runs Check again.
- Each test run is one Opus call and can take a minute or two. 30 an hour per company, item and project test runs together (429 rate_limited); 502 check_failed when it didn't come back.
Body (JSON)
- wordings *array
- 1 to 8 sentences or rewrites, each check once. A sentence goes at the end of the line its check reads, on a copy.
- evidencearray
- Draft evidence behind the sentences, not saved (up to 12). The check reads these first, in full.
curl -s -X POST "https://app.sredify.ca/api/v1/assessments/p_robot/wording/preview" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"wordings":[{"check":"field","text":"The plugin vendor's options for a fresh fix and Apple's CoreLocation guidance were checked; neither stated how to get a fresh GPS fix within [[5 s]] of a resume (652395f3)."},{"check":"advancement","text":"The tests showed a cached first fix lands a median of [[420 m]] from the start, so one fix can't mark where a trip begins (9a1c03be)."}],"evidence":[{"date":"2025-03-04","type":"reference","title":"Plugin docs: fresh fix after resume","body":"Whether the plugin offers a way to force a fresh fix","result":"No option does."}]}'/api/v1/assessments/{id}/wording/{wordingId}Undo wording you added (whole project)
Take a sentence your app or key added to this report back out of its line, one added for the project or for an item.
Permission: description:write
- Only your own (403 not_own). If someone edited the sentence since, 409 edited_since: it's changed in Sredify instead.
curl -s -X DELETE "https://app.sredify.ca/api/v1/assessments/p_robot/wording/{wordingId}?reason=Entered%20twice" \
-H "Authorization: Bearer $TOKEN"/api/v1/assessments/{id}/rewritesRewrite a line for a check
Replace the whole project description line a Why this qualifies check reads (242, 244 or 246), for a check that needs input on a project report. Use it when the check fails on what the line already says (for example routine features mixed in, or outcomes written as shipped features), which a sentence at the end can't fix. Show the person the current line (checks[].lineText) and the new one side by side; they approve it. Sredify keeps the old line and shows your app's name, who approved it, what was taken out and any AI details kept, with Undo.
Permission: description:rewrite
- Project reports only (422 not_project_report), and only for a check that needs input (422 check_holds). No description for the claim dates yet: 409 no_description.
- The person approving must have worked on at least one item of the report (422 confirmer_not_on_work).
- One rewrite per line at a time: 409 line_rewritten while another is in place (undo it first). The same text as now: 409 unchanged.
- Sentences apps added to the line that the new text doesn't keep are taken out with it and come back on Undo.
- Text with [[...]] markers left is refused (422 unchecked_numbers). Over the line's word limit is accepted and flagged (overCap). Test it first with POST /assessments/{id}/wording/preview and replace: true.
Body (JSON)
- check *string
- A check that needs input on this report (checks[].key). The line it reads is the one replaced. One of: feature, business, baseline, field, hypotheses, failures, contemporaneous, advancement.
- text *string
- The whole new line, plain text, 80 to 4,000 characters. No [[...]] markers: every AI detail is ticked or replaced first.
- confirmedByPersonId *string
- The person who compared the lines and approved it: on any item of the report (their id on People).
- aiNumbersarray
- AI details kept as they were (up to 20), each exactly as written in text.
- removedarray
- What was taken out, in plain words (up to 8), shown in Sredify next to the line.
curl -s -X POST "https://app.sredify.ca/api/v1/assessments/p_robot/rewrites" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"check":"feature","text":"It was not known whether the first background location fix after an iOS app resume could be trusted as a trip's start: on 12 trips it was a median of 550 m from where the technician began (652395f3, 9a1c03be).","confirmedByPersonId":"per_rita","aiNumbers":[],"removed":["The map picker, GPX import and draft storage (routine features)"]}'/api/v1/assessments/{id}/rewrites/{rewriteId}Undo a line rewrite
Put the line back exactly as it was before your app's rewrite, with any added sentences it took out.
Permission: description:rewrite
- Only your own (403 not_own). If someone edited the line since, 409 edited_since: it's changed in Sredify instead.
curl -s -X DELETE "https://app.sredify.ca/api/v1/assessments/p_robot/rewrites/{rewriteId}?reason=Entered%20twice" \
-H "Authorization: Bearer $TOKEN"/api/v1/assessments/{id}/work/{workId}/wordingAdd wording for a check (one item)
Older, per item: prefer POST /assessments/{id}/wording, since the check judges the project as one. Add a sentence to the project description line a Why this qualifies check reads (242, 244 or 246), for a check that needs input on a project report. It goes at the end of the line as its own paragraph; nothing already there changes. Sredify shows your app's name, who confirmed it and any AI numbers kept, and the owner runs Check again.
Permission: description:write
- Project reports only (422 not_project_report), and only for a check that needs input (422 check_holds). No description for the claim dates yet: 409 no_description.
- The person confirming must have worked on the item (422 confirmer_not_on_work). evidenceIds must be confirmed evidence on the same item.
- Text with [[...]] markers left is refused (422 unchecked_numbers): every AI filler number is ticked (send it in aiNumbers) or replaced first.
- The same sentence twice: 409 already_added. Over the line's word limit is accepted and flagged (overCap).
Body (JSON)
- check *string
- A check that needs input on this report (checks[].key). One of: feature, business, baseline, field, hypotheses, failures, contemporaneous, advancement.
- text *string
- Plain text, 40 to 1,200 characters. No [[...]] markers: every AI number must be ticked or replaced first.
- confirmedByPersonId *string
- The person who confirmed it (their id on People): on this item, or on any item of the report for the whole project.
- evidenceIdsarray
- Confirmed supporting evidence it comes from (up to 12): on this item, or on any item of the report for the whole project. The check reads these first, in full.
- aiNumbersarray
- AI filler numbers kept as they were (up to 12), each exactly as written in text.
curl -s -X POST "https://app.sredify.ca/api/v1/assessments/p_robot/work/{workId}/wording" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"check":"field","text":"The plugin vendor's options for a fresh fix and Apple's CoreLocation guidance were checked; neither stated how to get a fresh GPS fix within 5 s of a resume (652395f3).","confirmedByPersonId":"per_rita","evidenceIds":["ev_mf2k1q_a8c3d1"],"aiNumbers":[]}'/api/v1/assessments/{id}/work/{workId}/wording/previewTest wording before adding it (one item)
Older, per item: prefer POST /assessments/{id}/wording/preview. A test run of the Why this qualifies check: your sentences go at the end of their lines on a copy of the project description, your draft evidence goes first, and the same check as Check again runs once. Nothing is saved: not the description, not the check, not the evidence. Use it to show a person an example that holds up before they confirm it.
Permission: assessments:read
- Project reports only (422 not_project_report). No description for the claim dates yet: 409 no_description.
- The check is AI (the same prompt and model as Check again), so a real Check again can rarely judge differently. It only changes the report when a person adds the wording and runs Check again.
- Each test run is one Opus call and can take a minute or two. 30 an hour per company (429 rate_limited); 502 check_failed when it didn't come back.
Body (JSON)
- wordings *array
- 1 to 8 sentences or rewrites, each check once. A sentence goes at the end of the line its check reads, on a copy.
- evidencearray
- Draft evidence behind the sentences, not saved (up to 12). The check reads these first, in full.
curl -s -X POST "https://app.sredify.ca/api/v1/assessments/p_robot/work/{workId}/wording/preview" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"wordings":[{"check":"field","text":"The plugin vendor's options for a fresh fix and Apple's CoreLocation guidance were checked; neither stated how to get a fresh GPS fix within [[5 s]] of a resume (652395f3)."}],"evidence":[{"date":"2025-03-04","type":"reference","title":"Plugin docs: fresh fix after resume","body":"Whether the plugin offers a way to force a fresh fix","result":"No option does."}]}'/api/v1/assessments/{id}/work/{workId}/wording/{wordingId}Undo wording you added (one item)
Older, per item: DELETE /assessments/{id}/wording/{wordingId} undoes any of the report's. Take a sentence your app or key added back out of its line.
Permission: description:write
- Only your own (403 not_own). If someone edited the sentence since, 409 edited_since: it's changed in Sredify instead.
curl -s -X DELETE "https://app.sredify.ca/api/v1/assessments/p_robot/work/{workId}/wording/{wordingId}?reason=Entered%20twice" \
-H "Authorization: Bearer $TOKEN"/api/v1/hoursHours
Hours per person per project: estimated, recorded, and what counts. Recorded time replaces the estimate for that person on that day; it is never added on top.
Permission: hours:read
Query
- projectId
- Only this project.
- personId
- Only this person.
- day
- yyyy-mm-dd: each row also gets day, that one day's estimate, recorded time and what counts.
- from
- Start day, yyyy-mm-dd. Send with to. Default: the project's claim dates (last fiscal year).
- to
- End day, yyyy-mm-dd.
curl -s "https://app.sredify.ca/api/v1/hours" \
-H "Authorization: Bearer $TOKEN"{
"from": "2025-01-01",
"to": "2025-12-31",
"rule": "Recorded time replaces the estimate for that person on that day; it is never added on top.",
"hours": [
{
"projectId": "p_robot",
"personId": "per_rita",
"name": "Rita Robotics",
"onTeam": true,
"estimated": 412.5,
"replacedByRecorded": 6,
"recorded": 7.5,
"recordedDays": 1,
"total": 420,
"recordedByDay": {
"2025-03-14": {
"estimateReplaced": 6
}
}
}
]
}/api/v1/hoursRecord time
Record time a person worked on a project. It counts in the claim right away, labelled with your key or app.
Permission: hours:write
- The person must be on the company's People list and on the project: ticked on its Team, or linked to a GitHub contributor with commits in its repos.
- Hours: more than 0 and at most 24. The person's recorded total that day, across all projects, can't go over the company's daily maximum (GET /org: sred.maxHoursPerDay, default 10).
- Not in the future. Recorded time replaces that day's estimate for the person.
- Say how it was captured (capture: timer or manual) and who approved it in your app (approval: { by: "person" }, or { by: "admin", adminName, reason } when an Admin approved it for them). Both show on the Claim screen and print in the claim PDF, so a reviewer can tell time recorded while the work happened from time entered later.
- Period lock: when the company has filed a period (GET /org: sred.hoursLockedThrough), days on or before it are locked: adding, changing or removing time there answers 409 period_locked.
Query and headers
- Idempotency-Key
- Any unique string (for example a UUID). Sending the same key again within 24 hours returns the first result instead of adding twice.
Body (JSON)
- projectId *string
- The project id (GET /projects).
- personIdstring
- The person's id. Or send email instead.
- emailstring
- The person's email on the People list.
- date *string
- The day the work happened. Not in the future.
- hours *number
- More than 0, at most 24. Kept to 2 decimals (to the minute: 2h 50m = 2.83).
- description *string
- What they worked on (at most 300 characters).
- notesstring
- Optional longer notes (at most 5000 characters).
- capturestring
- Optional: how the time was captured. timer = recorded with a timer while the work happened, manual = typed in later. Shown on the Claim screen and printed in the claim PDF. One of: timer, manual.
- approvalobject
- Optional: who approved the time in your app. Shown in Sredify as Approved by Priya, or Approved by Dana (Admin) for Priya: on leave, and printed in the claim PDF.
curl -s -X POST "https://app.sredify.ca/api/v1/hours" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"projectId":"p_robot","email":"rita@acme.example","date":"2026-03-14","hours":7.5,"description":"Grip force tests on prototype 3","capture":"timer","approval":{"by":"person"}}'{
"id": "ev_mf2k1q_a8c3d1",
"projectId": "p_robot",
"type": "time",
"date": "2026-03-14",
"personId": "per_rita",
"hours": 7.5,
"title": "Grip force tests on prototype 3",
"body": null,
"url": null,
"source": {
"kind": "app",
"id": "cmuabc123",
"label": "Acme Timer",
"approvedBy": "Ann Admin"
},
"createdAt": "2026-03-14T23:10:00.000Z",
"updatedAt": "2026-03-14T23:10:00.000Z",
"removed": null
}/api/v1/hours/{id}Change a time entry
Change a time entry your key or app added. Send only the fields to change. The person can't change: remove the entry and add a new one.
Permission: hours:write
- Only items your own key or app added (403 not_yours otherwise).
- Not on a locked day, and not moved onto one (409 period_locked, GET /org: sred.hoursLockedThrough).
Body (JSON)
- datestring
- The day the work happened.
- hoursnumber
- More than 0, at most 24. Kept to 2 decimals.
- descriptionstring
- What they worked on.
- notesstring | null
- Send null or empty to clear.
- capturestring | null
- timer or manual. null clears it. One of: timer, manual.
- approvalobject | null
- Optional: who approved the time in your app. Shown in Sredify as Approved by Priya, or Approved by Dana (Admin) for Priya: on leave, and printed in the claim PDF.
curl -s -X PATCH "https://app.sredify.ca/api/v1/hours/ev_mf2k1q_a8c3d1" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"hours":6}'/api/v1/hours/{id}Remove a time entry
Remove a time entry your key or app added. It stops counting and is kept in history with the reason.
Permission: hours:write
- Not on a locked day (409 period_locked, GET /org: sred.hoursLockedThrough).
Query and headers
- reason *
- Why it's removed (shown in the app's history).
curl -s -X DELETE "https://app.sredify.ca/api/v1/hours/ev_mf2k1q_a8c3d1?reason=Entered%20twice" \
-H "Authorization: Bearer $TOKEN"/api/v1/people/{personId}/worked-daysSet hours worked on a day
A person's total approved hours that day, every kind of work, not only SR&ED. Sredify gets SR&ED time through POST /hours; these totals let the Claim screen check each person's usual time on SR&ED (Settings, People) against what they recorded. Send it for every approved day, also days with no SR&ED time.
Permission: hours:write
- Sending the same day again replaces it. 0 removes the day.
- Never printed and never money: the Claim screen shows a check when recorded SR&ED time differs from a person's usual time on SR&ED by more than 5 points.
Body (JSON)
- date *string
- The day, yyyy-mm-dd. Not in the future.
- hours *number
- The person's total approved hours that day, every kind of work (R&D or not). 0 to 24; 0 removes the day.
curl -s -X POST "https://app.sredify.ca/api/v1/people/{personId}/worked-days" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"date":"2026-03-14","hours":7.5}'{
"personId": "per_rita",
"date": "2026-03-14",
"hours": 7.5,
"yearTotal": 412.25
}/api/v1/people/{personId}/worked-daysHours worked
The hours worked per day that were sent for a person, and the total.
Permission: hours:read
- from / to default to the current calendar year.
Query
- from
- Start day, yyyy-mm-dd. Send with to. Default: the project's claim dates (last fiscal year).
- to
- End day, yyyy-mm-dd.
curl -s "https://app.sredify.ca/api/v1/people/{personId}/worked-days" \
-H "Authorization: Bearer $TOKEN"{
"personId": "per_rita",
"from": "2026-01-01",
"to": "2026-12-31",
"total": 7.5,
"days": {
"2026-03-14": 7.5
}
}/api/v1/claims/{projectId}A project's claim
The claim numbers for a project, calculated exactly as on the Claim screen.
Permission: claims:read
- Salary amounts, totals and the credit estimate need pay:read too. Without it you get hours and shares only, plus a note.
Query
- from
- Start day, yyyy-mm-dd. Send with to. Default: the project's claim dates (last fiscal year).
- to
- End day, yyyy-mm-dd.
curl -s "https://app.sredify.ca/api/v1/claims/p_robot" \
-H "Authorization: Bearer $TOKEN"/api/v1/claims/{projectId}/materialsAdd a material cost
Add a material the work used up or changed (a test batch of ingredients, resin for prototype runs) to the project's claim, linked to the trials it was used in. It counts in the claim right away and shows your app's name on the Claim screen.
Permission: claims:write
- Admin only, like Change hours: it changes the money the claim counts.
- Only materials used up (consumed) or changed into the prototype or product (transformed) by the SR&ED work count. Leave out anything sold or used in commercial production.
- A person can still edit or remove the row on the Claim screen. Your app changes and removes only its own rows (403 not_yours).
Query and headers
- Idempotency-Key
- Any unique string (for example a UUID). Sending the same key again within 24 hours returns the first result instead of adding twice.
Body (JSON)
- description *string
- What the material is (at most 300 characters).
- amount *number
- Dollars, more than 0 and at most 10,000,000. Rounded to cents.
- date *string
- When it was bought or used. Not in the future.
- kind *string
- consumed: used up by the work (a test batch of ingredients, resin burned in trials). transformed: changed into the prototype or product. One of: consumed, transformed.
- evidenceIdsarray
- Optional: the trials or notes on this project it was used in (live items, not time entries), up to 20.
curl -s -X POST "https://app.sredify.ca/api/v1/claims/p_robot/materials" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"description":"Pea protein isolate, 25 kg (test batches 12 to 14)","amount":412.5,"date":"2026-03-14","kind":"consumed","evidenceIds":["ev_mf2k1q_a8c3d1"]}'/api/v1/claims/{projectId}/materials/{rowId}Change a material cost
Change a material row your key or app added: send only the fields to change.
Permission: claims:write
Body (JSON)
- descriptionstring
- amountnumber
- datestring
- A day, yyyy-mm-dd.
- kindstring
- One of: consumed, transformed.
- evidenceIdsarray | null
- Send [] or null to clear.
curl -s -X PATCH "https://app.sredify.ca/api/v1/claims/p_robot/materials/mat_mf2k1q_x7a2c" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"amount":398}'/api/v1/claims/{projectId}/materials/{rowId}Remove a material cost
Remove a material row your key or app added. It stops counting; the claim's history keeps it.
Permission: claims:write
curl -s -X DELETE "https://app.sredify.ca/api/v1/claims/p_robot/materials/mat_mf2k1q_x7a2c" \
-H "Authorization: Bearer $TOKEN"/api/v1/evidenceRecorded time, notes, links and supporting evidence
Everything added as evidence (in the app, by keys and by apps), oldest change first. Use since= to sync only what changed.
Permission: evidence:read
Query
- projectId
- Only this project.
- type
- time, note, link, trial, meeting, reference, step, test or card.
- assessmentId
- Supporting evidence of this report only.
- workId
- Supporting evidence of this eligible work item only.
- since
- Only items changed at or after this ISO date or date-time.
- includeRemoved
- true to include removed items.
- limit
- Items per page, 1 to 200 (default 50).
- cursor
- nextCursor from the previous page.
curl -s "https://app.sredify.ca/api/v1/evidence" \
-H "Authorization: Bearer $TOKEN"/api/v1/evidenceAdd a note, link or supporting evidence
Add a note or a link (a design doc, a test report, a ticket) to a project, or supporting evidence (a meeting, research reference, engineering step, test or task card) to one eligible work item of a past report.
Permission: evidence:write
- Links must be full https:// (or http://) addresses.
- Trials from your own system: send externalId (your id for the experiment). Sending a trial with the same externalId again updates that trial instead of adding a second one: 200 (not 201), same id and TRIAL number, and fields you leave out keep their value. It must be on the same project (409 external_id_taken otherwise); a removed one answers 409 removed. Unique per key or app, so two apps never clash.
- Trials (type trial): one experiment, batch or test run on a project, in the TrialInput shape: what was tried (title), hypothesis, changed, setup, result, learned, outcome (worked, failed, partial, inconclusive) and who ran it (personIds). Sredify numbers them TRIAL-1, TRIAL-2, ... per project. Put it in one of the project's workstreams (workstreamId from GET /projects), or leave that out and it waits in Trials to file until someone in Sredify files it. Still running (a shelf test)? Send running: true without result and outcome, then PATCH { running: false, result, outcome } when it's done; running trials aren't counted in the claim until then. Software project? Send code: the commits and pull requests the trial tested, from the project's repos ({ kind: "commit", repo: "acme/route-engine", ref: "a3f9c21", title: "Cell-level rebuild" } or kind "pr" with the PR number), so the result sits on top of the code. A trial never adds hours: record the time with POST /hours. Example: { projectId: "p_robot", type: "trial", date: "2026-03-14", title: "Batch 14: 12% pea protein", hypothesis: "More protein keeps the bar firm past 30 days", changed: "Protein 10% to 12%, water down 2%", result: "Firm at day 30, chalky taste", outcome: "partial", personIds: ["per_rita"] }.
- Supporting evidence: send the WorkEvidenceInput shape (assessmentId, workId, type meeting | reference | step | test | card). Example: { assessmentId: "as_1", workId: "grip-force", type: "meeting", date: "2025-03-11", title: "Review soft-object crush results", minutes: 45, personIds: ["per_rita"], result: "Try a torque cap next", suggestion: { confirmedAs: "edited", confirmedByPersonId: "per_rita" } }.
- Supporting evidence backs up the item's hours. It never adds to them or replaces them, and is shown under the item in Sredify and in the claim PDF.
- Only send what a person confirmed. If your app suggested it, send suggestion with who confirmed it and whether they edited it.
- Hold-up rules (2026-10-22): the person confirming must be on the work item (422 confirmer_not_on_work); a meeting or test can't be longer than each person's hours on the item that day (422 minutes_over_hours). Send sources (where each field's words came from) and a proofUrl when the person has a link to the proof. GET /assessments/{id} lists each item's open gaps: the parts of the claim's project description no evidence shows yet, to draft evidence for.
- Checked: the date is inside the report's dates and not in the future, people are on People and on the project, minutes 1 to 480, commits belong to the item.
- Task cards (type card): accepted when the report's cardsAllowed is true (422 jira_connected when its Ticket evidence is Jira tickets). On a repo without Jira that's always; on a repo linked to Jira a report starts on task cards when Jira didn't work for it (revoked, not connected, refused, unreachable, no tickets: see jira.status), and a person can switch any report. Send angles (1 to 3 of the item's SR&ED tests; older apps may send one angle), authoring, at least one person in personIds and at least one of the item's commits in commitShas (a commit may be on more than one card). Send your own key (PRJ-4821: unique in the report, prefix not one of the project's Jira keys) or leave it out and Sredify numbers them CARD-1, CARD-2, ... per report. Optional comments (one-line struggles) and testing (testing feedback); result shows as Outcome. Done when (acceptance) is no longer kept: it's ignored on new cards. Example: { assessmentId: "as_1", workId: "grip-force", type: "card", key: "RBT-4821", angles: ["investigation", "advancement"], authoring: "ai", date: "2025-03-12", title: "Cap torque on soft objects", body: "Cap motor torque once grip force passes the soft-object limit, e.g. 2 N for fruit.", comments: ["Force sensor lagged the motor by 40 ms."], testing: "Crush tests at 3 grip speeds.", result: "No crush at 3 grip speeds", personIds: ["per_rita"], commitShas: ["a1b2c3d4"], suggestion: { confirmedAs: "edited", confirmedByPersonId: "per_rita" } }.
Query and headers
- Idempotency-Key
- Any unique string (for example a UUID). Sending the same key again within 24 hours returns the first result instead of adding twice.
Body (JSON)
- projectId *string
- The project id (GET /projects).
- type *string
- One of: note, link.
- date *string
- The day it's about. Not in the future.
- title *string
- Short title (at most 300 characters).
- bodystring
- Optional text (at most 5000 characters).
- urlstring
- Links only: a full https:// address.
curl -s -X POST "https://app.sredify.ca/api/v1/evidence" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"projectId":"p_robot","type":"link","date":"2026-03-14","title":"Grip test report","url":"https://docs.acme.example/grip-tests"}'/api/v1/evidence/{id}/filesAn item's files
The files kept with an evidence item, removed ones included (they no longer download).
Permission: evidence:read
curl -s "https://app.sredify.ca/api/v1/evidence/ev_mf2k1q_a8c3d1/files" \
-H "Authorization: Bearer $TOKEN"/api/v1/evidence/{id}/filesAdd a file (up to 4 MB)
Keep a file with an item your key or app added: a trial photo, a test-rig CSV, a lab PDF. Send the file itself as the body with its Content-Type, and its name as ?name=. Bigger files (up to 5 MB): use an upload link (POST /evidence/{id}/files/uploads).
Permission: evidence:write
- Types: PNG image, JPEG image, WebP image, PDF, CSV, Text, JSON, Excel sheet. The first bytes must match the type (422 type_mismatch). Up to 4 MB this way (413 too_large: use an upload link), 5 MB with a link, 10 live files an item, 250 MB for the whole company.
- Files are kept in private storage: no public link exists. They download only through Sredify, with a key or token that has evidence:read, or signed in.
- Any item but time entries, and only items your own key or app added (403 not_yours). The file shows under the item on the Claim screen and its name is listed in the claim PDF.
Query and headers
- name *
- The file name, for example batch-14.jpg.
- Idempotency-Key
- Any unique string (for example a UUID). Sending the same key again within 24 hours returns the first result instead of adding twice.
Body (the file)
The file's bytes, with its Content-Type: image/png, image/jpeg, image/webp, application/pdf, text/csv, text/plain, application/json, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.
curl -s -X POST "https://app.sredify.ca/api/v1/evidence/ev_mf2k1q_a8c3d1/files?name=batch-14.jpg" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: image/jpeg" \
--data-binary @batch-14.jpg/api/v1/evidence/{id}/files/uploadsGet an upload link (up to 5 MB)
For files over 4 MB (or any file you'd rather not send through Sredify): a 15 minute link to PUT the file straight into storage. Then POST complete.
Permission: evidence:write
- Three steps: 1) POST here with the name, type and exact size. 2) PUT the bytes to upload.url with upload.headers (no Authorization header). 3) POST complete. The file shows on the item only after complete.
- The same rules as Add a file: types, own items only, the limits. Storage refuses a PUT of another type or a bigger file.
Query and headers
- Idempotency-Key
- Any unique string (for example a UUID). Sending the same key again within 24 hours returns the first result instead of adding twice.
Body (JSON)
- name *string
- The file name, for example batch-14.jpg.
- mime *string
- The file's type. One of: image/png, image/jpeg, image/webp, application/pdf, text/csv, text/plain, application/json, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.
- size *number
- Its length in bytes, 1 to 5242880. The upload must be exactly this long.
curl -s -X POST "https://app.sredify.ca/api/v1/evidence/ev_mf2k1q_a8c3d1/files/uploads" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"name":"batch-14.jpg","mime":"image/jpeg","size":4823112}'/api/v1/evidence/{id}/files/{fileId}/completeFinish an upload
After the PUT: Sredify checks the file (its size and first bytes) and lists it on the item. Sending it again answers the same.
Permission: evidence:write
- 409 not_uploaded: nothing arrived at the link yet. 422 size_mismatch or type_mismatch: the file is deleted, start a new upload.
curl -s -X POST "https://app.sredify.ca/api/v1/evidence/ev_mf2k1q_a8c3d1/files/cmfile123/complete" \
-H "Authorization: Bearer $TOKEN"/api/v1/evidence/{id}/files/{fileId}Download a file
The file itself, always as a download (Content-Disposition: attachment).
Permission: evidence:read
- 410 removed when the file was removed.
curl -s "https://app.sredify.ca/api/v1/evidence/ev_mf2k1q_a8c3d1/files/cmfile123" \
-H "Authorization: Bearer $TOKEN" \
-o batch-14.jpg/api/v1/evidence/{id}/files/{fileId}Remove a file
Remove a file your key or app added. It stays listed with who and why; the file itself is deleted from storage.
Permission: evidence:write
Query and headers
- reason *
- Why it's removed (shown in the app's history).
curl -s -X DELETE "https://app.sredify.ca/api/v1/evidence/ev_mf2k1q_a8c3d1/files/cmfile123?reason=Entered%20twice" \
-H "Authorization: Bearer $TOKEN"/api/v1/evidence/{id}One evidence item
A single item, removed or not.
Permission: evidence:read
curl -s "https://app.sredify.ca/api/v1/evidence/ev_mf2k1q_a8c3d1" \
-H "Authorization: Bearer $TOKEN"/api/v1/evidence/{id}Change a note, link, trial or supporting evidence
Change an item your key or app added: send only the fields to change (null clears one). Trials take the TrialInput fields. Supporting evidence can't move to another item or type. Time entries need hours:write instead.
Permission: evidence:write
Body (JSON)
- datestring
- A day, yyyy-mm-dd.
- titlestring
- Short title.
- bodystring | null
- Send null or empty to clear.
- urlstring
- Links only.
curl -s -X PATCH "https://app.sredify.ca/api/v1/evidence/ev_mf2k1q_a8c3d1" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"title":"Grip test report v2"}'/api/v1/evidence/{id}Remove a note, link or supporting evidence
Remove an item your key or app added. Kept in history with the reason. Time entries need hours:write instead.
Permission: evidence:write
Query and headers
- reason *
- Why it's removed (shown in the app's history).
curl -s -X DELETE "https://app.sredify.ca/api/v1/evidence/ev_mf2k1q_a8c3d1?reason=Entered%20twice" \
-H "Authorization: Bearer $TOKEN"