Skip to content

A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

docs: refresh API key guide captures and align Not Found copy (RX-196)

Amruth Pillai8adb652a6131
diff --git a/apps/server/src/http/resume-pdf.test.ts b/apps/server/src/http/resume-pdf.test.ts
index df0c41eb9..8dfde4e10 100644
--- a/apps/server/src/http/resume-pdf.test.ts
+++ b/apps/server/src/http/resume-pdf.test.ts
@@ -91,6 +91,16 @@ describe("handleResumePdfDownload", () => {
expect(response.status).toBe(410);
expect(mocks.createResumePdfDownload).not.toHaveBeenCalled();
});
+ it("answers a legacy cover-letter target as Not Found", async () => {
+ mocks.verifyResumePdfDownloadToken.mockReturnValueOnce({ ok: true, resumeId: "resume-1", userId: "user-1" });
+ const response = await handleResumePdfDownload(
+ new Request("https://example.com/api/resumes/resume-1/pdf?token=signed&target=cover-letter"),
+ "resume-1",
+ );
+ expect(response.status).toBe(404);
+ expect(await response.text()).toBe("Not Found");
+ expect(mocks.createResumePdfDownload).not.toHaveBeenCalled();
+ });
it("returns the shared renderer's rate limit as HTTP 429", async () => {
mocks.verifyResumePdfDownloadToken.mockReturnValueOnce({ ok: true, userId: "user-1" });
mocks.createResumePdfDownload.mockRejectedValueOnce({
diff --git a/apps/server/src/http/resume-pdf.ts b/apps/server/src/http/resume-pdf.ts
index 968ae7392..5698df757 100644
--- a/apps/server/src/http/resume-pdf.ts
+++ b/apps/server/src/http/resume-pdf.ts
@@ -25,7 +25,7 @@ export async function handleResumePdfDownload(request: Request, id: string) {
return verification.reason === "expired" ? text("Download link expired", 410) : text("Unauthorized", 401);
// Links made before letters left resumes may ask for the resume's cover letter, which is now a letter of its own.
const target = searchParams.get("target");
- if (target && target !== "resume") return text("Not found", 404);
+ if (target && target !== "resume") return text("Not Found", 404);
try {
const resHeaders = new Headers();
diff --git a/apps/server/src/openapi/handler.test.ts b/apps/server/src/openapi/handler.test.ts
index 68feed4a6..c0b35debc 100644
--- a/apps/server/src/openapi/handler.test.ts
+++ b/apps/server/src/openapi/handler.test.ts
@@ -74,7 +74,7 @@ describe("REST boundary", () => {
body: "{}",
});
expect(response.status).toBe(404);
- expect(await response.json()).toMatchObject({ code: "NOT_FOUND", status: 404 });
+ expect(await response.json()).toMatchObject({ code: "NOT_FOUND", status: 404, message: "Not Found" });
},
);
it.each([
diff --git a/apps/server/src/openapi/handler.ts b/apps/server/src/openapi/handler.ts
index 4125b1240..0b5522799 100644
--- a/apps/server/src/openapi/handler.ts
+++ b/apps/server/src/openapi/handler.ts
@@ -51,7 +51,7 @@ export async function handleOpenApi(request: Request, trustedClient: string) {
resHeaders.set("X-Content-Type-Options", "nosniff");
if (!response)
return Response.json(
- { defined: false, code: "NOT_FOUND", status: 404, message: "Not found" },
+ { defined: false, code: "NOT_FOUND", status: 404, message: "Not Found" },
{ status: 404, headers: resHeaders },
);
return mergeResponseHeaders(response, resHeaders);
diff --git a/docs/guides/using-the-api.mdx b/docs/guides/using-the-api.mdx
index d0bc916fc..79a17e841 100644
--- a/docs/guides/using-the-api.mdx
+++ b/docs/guides/using-the-api.mdx
@@ -22,8 +22,8 @@ The Reactive Resume REST API lets your own scripts, extensions and automations r
<Step title="Name the key, choose its access and expiration">
Under **What's it for?**, enter a name that reminds you where the key is used, such as "Resume sync script". Under **Access**, choose **Read only** unless the tool needs to change your documents; **Read, write and delete** lets it change and delete them too. Under **Expires**, choose **30 days**, **90 days** or **Never**, then select **Create key**. If you signed in more than a day ago, you're asked to sign in again first.
- <Frame caption="Name a key and choose its expiration">
- <img src="/images/guides/using-the-api/new-api-key-dialog.webp" alt="New API key dialog with Resume sync script entered and expiration choices" />
+ <Frame caption="Name a key and choose its access and expiration">
+ <img src="/images/guides/using-the-api/new-api-key-dialog.webp" alt="New API key dialog with Resume sync script entered, Read only selected under Access with the note that it can't change or delete anything, 30 days selected under Expires, and Create key" />
</Frame>
</Step>
@@ -31,7 +31,7 @@ The Reactive Resume REST API lets your own scripts, extensions and automations r
Select **Copy**, store the key somewhere safe (a password manager or your deployment's secret store), then select **Done**. New keys start with `rr_`, so secret scanners can spot one that leaks into a repository. Send the key in the `x-api-key` header. For an MCP client, **Copy MCP config** copies a ready-to-paste server entry with this instance's address and the key in its header.
<Frame caption="Copy a new key once; example value hidden">
- <img src="/images/guides/using-the-api/api-key-shown-once.webp" alt="New API key dialog with the one-time key value hidden, Copy and Done, and the warning that it will not be shown again" />
+ <img src="/images/guides/using-the-api/api-key-shown-once.webp" alt="New API key dialog with the one-time key value hidden for the example, Copy, a reminder to send it in the x-api-key header, Copy MCP config, and Done" />
</Frame>
<Warning>
@@ -46,7 +46,7 @@ Your keys are listed in the **API keys** table with their access (**Read only**
<Frame caption="Manage API keys from settings">
<img
src="/images/guides/using-the-api/api-keys-section.webp"
- alt="API keys table with a fictional Resume sync script key, creation and expiration dates, last use and Revoke"
+ alt="API keys table with fictional Resume sync script and Claude Desktop keys, their Read only and Full access levels, creation and expiration dates, last use and Revoke"
/>
</Frame>
@@ -260,7 +260,7 @@ Branch on `code` rather than on the message text. Invalid input uses `400`, miss
Select **Revoke**. The key stops working at once, and a message confirms which key you revoked.
<Frame caption="Revoke a key you no longer need">
- <img src="/images/guides/using-the-api/revoke-key-undo-toast.webp" alt="API key revocation message with Undo, in current settings with standalone Profile navigation" />
+ <img src="/images/guides/using-the-api/revoke-key-undo-toast.webp" alt="API key revocation message with Undo for the fictional Resume sync script key, with another key still listed in current settings with standalone Profile navigation" />
</Frame>
</Step>
diff --git a/docs/images/guides/using-the-api/api-key-shown-once.webp b/docs/images/guides/using-the-api/api-key-shown-once.webp
index 7a43525b4..6a9738398 100644
Binary files a/docs/images/guides/using-the-api/api-key-shown-once.webp and b/docs/images/guides/using-the-api/api-key-shown-once.webp differ
diff --git a/docs/images/guides/using-the-api/api-keys-section.webp b/docs/images/guides/using-the-api/api-keys-section.webp
index 6b6c27deb..5044cbfad 100644
Binary files a/docs/images/guides/using-the-api/api-keys-section.webp and b/docs/images/guides/using-the-api/api-keys-section.webp differ
diff --git a/docs/images/guides/using-the-api/new-api-key-dialog.webp b/docs/images/guides/using-the-api/new-api-key-dialog.webp
index ebce244ed..3c9b857a9 100644
Binary files a/docs/images/guides/using-the-api/new-api-key-dialog.webp and b/docs/images/guides/using-the-api/new-api-key-dialog.webp differ
diff --git a/docs/images/guides/using-the-api/revoke-key-undo-toast.webp b/docs/images/guides/using-the-api/revoke-key-undo-toast.webp
index 2cc35ddae..7d19e015e 100644
Binary files a/docs/images/guides/using-the-api/revoke-key-undo-toast.webp and b/docs/images/guides/using-the-api/revoke-key-undo-toast.webp differ