{"openapi":"3.1.0","info":{"title":"OhSpotted API","version":"0.0.1","description":"Follow public LinkedIn profiles, company pages and jobs and read what changed on them: OhSpotted reads each page once a day (never in real time) and keeps the changes as signals. Authenticate with a personal API key from your account (Bearer token). Everything here uses the account's own list and credits, like the app: each page followed is read once a day, never in real time, and costs 2 credits a day for a profile, 3 for a company page and 1 for a job. The free plan includes 120 credits a month and up to 2 pages; the Spotter plan, or credits left from a bought pack, up to 200. The API itself is not billed: an account can make 600 requests an hour, and add 60 pages an hour. The same key works with the MCP server at /api/mcp, which also accepts a sign-in through OAuth."},"externalDocs":{"description":"Documentation","url":"https://www.ohspotted.com/docs"},"servers":[{"url":"https://www.ohspotted.com/api/v1"}],"tags":[{"name":"Targets","description":"The pages you follow, read once a day."},{"name":"Signals","description":"What changed on them between two daily reads."},{"name":"Account","description":"Your plan and your credits."}],"security":[{"bearerAuth":[]}],"paths":{"/usage":{"get":{"operationId":"getUsage","tags":["Account"],"summary":"Get your plan and credits","description":"The plan, the credits left, how many pages are followed and how many the plan allows, and the credits the active pages use in 30 days. Everything here uses the account's own list and credits, like the app: each page followed is read once a day, never in real time, and costs 2 credits a day for a profile, 3 for a company page and 1 for a job. The free plan includes 120 credits a month and up to 2 pages; the Spotter plan, or credits left from a bought pack, up to 200. The API itself is not billed: an account can make 600 requests an hour, and add 60 pages an hour.","responses":{"200":{"description":"Usage","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Usage"},"example":{"plan":"free","plan_name":"Free","credits":96,"targets":1,"target_limit":2,"monthly_credits":60,"simulated":false,"reads_enabled":true,"requests_per_hour":600,"manage_url":"https://www.ohspotted.com/app"}}}},"401":{"description":"unauthorized: The API key is missing, revoked or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: More than 600 requests (or 60 added pages) in an hour. Retry-After says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"generic: Something went wrong on our side. Try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl: Your plan and credits left","source":"curl \"https://www.ohspotted.com/api/v1/usage\" \\\n  -H \"Authorization: Bearer YOUR_API_KEY\""},{"lang":"JavaScript","label":"fetch: Your plan and credits left","source":"const response = await fetch(\"https://www.ohspotted.com/api/v1/usage\", {\n  headers: {\n    Authorization: \"Bearer YOUR_API_KEY\",\n  },\n});\nconst data = await response.json();\nif (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);\nconsole.log(data);"}]}},"/targets":{"get":{"operationId":"listTargets","tags":["Targets"],"summary":"List the pages you follow","description":"The account's list, newest first, with each page's state and its latest signal. A target is a LinkedIn profile, company page or job followed by the account. Send url to find out whether one LinkedIn page is on the list.","parameters":[{"name":"url","in":"query","description":"Only the target that follows this LinkedIn address (with or without https, www or tracking parameters): one item, or none when the page isn't on the list","schema":{"type":"string"},"example":"https://www.linkedin.com/in/jane-doe"},{"name":"kind","in":"query","description":"Only this kind of page","schema":{"type":"string","enum":["profile","company","job"]}},{"name":"page","in":"query","description":"Page number","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","in":"query","description":"Targets per page","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}}],"responses":{"200":{"description":"Targets","content":{"application/json":{"schema":{"type":"object","required":["targets","total","page"],"properties":{"targets":{"type":"array","items":{"$ref":"#/components/schemas/Target"}},"total":{"type":"integer","description":"Targets on the list (of that kind)"},"page":{"type":"integer"}}},"example":{"targets":[{"id":"5c1f2f7e-8f0b-4c7e-9a4d-0e51c1a6d2f1","kind":"profile","url":"https://www.linkedin.com/in/jane-doe","name":"Jane Doe","headline":"Head of Design at Globex","status":"active","pause_reason":null,"muted":false,"waiting_first_read":false,"unavailable":false,"unread_signals":1,"latest_signal":{"id":"0b8f6a1e-3c1d-4f43-8f5e-7a9a2d6c4e10","target_id":"5c1f2f7e-8f0b-4c7e-9a4d-0e51c1a6d2f1","target_name":"Jane Doe","target_url":"https://www.linkedin.com/in/jane-doe","kind":"position_changed","importance":3,"before":"Designer at Acme","after":"Head of Design at Globex","link":"https://www.linkedin.com/in/jane-doe","occurred_at":"2026-12-01T07:12:00.000Z","unread":true},"last_read_at":"2026-12-01T07:00:00.000Z","added_at":"2026-11-20T09:30:00.000Z"}],"total":1,"page":1}}}},"400":{"description":"invalid_target: url isn't the address of a LinkedIn profile, company page or job. invalid_option: A setting isn't valid: kind, paused, muted, seen or unread. Also when the body isn't a JSON object, or a required argument is missing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: The API key is missing, revoked or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: More than 600 requests (or 60 added pages) in an hour. Retry-After says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"generic: Something went wrong on our side. Try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl: The first 20 pages of your list","source":"curl \"https://www.ohspotted.com/api/v1/targets?limit=20\" \\\n  -H \"Authorization: Bearer YOUR_API_KEY\""},{"lang":"JavaScript","label":"fetch: The first 20 pages of your list","source":"const response = await fetch(\"https://www.ohspotted.com/api/v1/targets?limit=20\", {\n  headers: {\n    Authorization: \"Bearer YOUR_API_KEY\",\n  },\n});\nconst data = await response.json();\nif (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);\nconsole.log(data.targets);"},{"lang":"Shell","label":"curl: Is this page already on your list?","source":"curl \"https://www.ohspotted.com/api/v1/targets?url=https%3A%2F%2Fwww.linkedin.com%2Fin%2Fjane-doe\" \\\n  -H \"Authorization: Bearer YOUR_API_KEY\""},{"lang":"JavaScript","label":"fetch: Is this page already on your list?","source":"const response = await fetch(\"https://www.ohspotted.com/api/v1/targets?url=https%3A%2F%2Fwww.linkedin.com%2Fin%2Fjane-doe\", {\n  headers: {\n    Authorization: \"Bearer YOUR_API_KEY\",\n  },\n});\nconst data = await response.json();\nif (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);\nconsole.log(data.targets[0] ?? null);"},{"lang":"Shell","label":"curl: Only the company pages","source":"curl \"https://www.ohspotted.com/api/v1/targets?kind=company&page=1\" \\\n  -H \"Authorization: Bearer YOUR_API_KEY\""},{"lang":"JavaScript","label":"fetch: Only the company pages","source":"const response = await fetch(\"https://www.ohspotted.com/api/v1/targets?kind=company&page=1\", {\n  headers: {\n    Authorization: \"Bearer YOUR_API_KEY\",\n  },\n});\nconst data = await response.json();\nif (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);\nconsole.log(data.targets);"}]},"post":{"operationId":"addTarget","tags":["Targets"],"summary":"Follow a page","description":"Adds a LinkedIn profile, company page or job to the list. The first read happens shortly after, usually within minutes, and only takes the starting picture: signals are what changes after it, once a day. Needs the credits of one read (2 for a profile, 3 for a company page, 1 for a job).","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["url"],"properties":{"url":{"type":"string","description":"The page's LinkedIn address, as copied from a browser (with or without https and www)"}}},"example":{"url":"https://www.linkedin.com/in/jane-doe"}}}},"responses":{"201":{"description":"The page is on the list","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Target"},"example":{"id":"5c1f2f7e-8f0b-4c7e-9a4d-0e51c1a6d2f1","kind":"profile","url":"https://www.linkedin.com/in/jane-doe","name":"Jane Doe","headline":"Head of Design at Globex","status":"active","pause_reason":null,"muted":false,"waiting_first_read":false,"unavailable":false,"unread_signals":1,"latest_signal":{"id":"0b8f6a1e-3c1d-4f43-8f5e-7a9a2d6c4e10","target_id":"5c1f2f7e-8f0b-4c7e-9a4d-0e51c1a6d2f1","target_name":"Jane Doe","target_url":"https://www.linkedin.com/in/jane-doe","kind":"position_changed","importance":3,"before":"Designer at Acme","after":"Head of Design at Globex","link":"https://www.linkedin.com/in/jane-doe","occurred_at":"2026-12-01T07:12:00.000Z","unread":true},"last_read_at":"2026-12-01T07:00:00.000Z","added_at":"2026-11-20T09:30:00.000Z"}}}},"400":{"description":"invalid_target: url isn't the address of a LinkedIn profile, company page or job. invalid_option: A setting isn't valid: kind, paused, muted, seen or unread. Also when the body isn't a JSON object, or a required argument is missing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: The API key is missing, revoked or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"no_credits: The account hasn't enough credits for the first daily read of the page being added or resumed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"target_limit: The list is full (2 pages on the free plan, 200 on Spotter), or a page beyond what the plan reads can't be resumed. page_blocked: The page was removed from OhSpotted at its owner's request and can't be followed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"already_watching: The page is already on the account's list.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"too_many_failed_pages: 10 pages added within a day couldn't be found on their first read. Until the day is over, only pages already read can be added. rate_limited: More than 600 requests (or 60 added pages) in an hour. Retry-After says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"generic: Something went wrong on our side. Try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl: Follow a profile","source":"curl -X POST \"https://www.ohspotted.com/api/v1/targets\" \\\n  -H \"Authorization: Bearer YOUR_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"url\":\"https://www.linkedin.com/in/jane-doe\"}'"},{"lang":"JavaScript","label":"fetch: Follow a profile","source":"const response = await fetch(\"https://www.ohspotted.com/api/v1/targets\", {\n  method: \"POST\",\n  headers: {\n    Authorization: \"Bearer YOUR_API_KEY\",\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"url\":\"https://www.linkedin.com/in/jane-doe\"}),\n});\nconst data = await response.json();\nif (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);\nconsole.log(data);"}]}},"/targets/{id}":{"get":{"operationId":"getTarget","tags":["Targets"],"summary":"Get a page you follow","description":"One target, with its latest signal.","parameters":[{"name":"id","in":"path","required":true,"description":"id returned when the page was added","schema":{"type":"string","format":"uuid"},"example":"5c1f2f7e-8f0b-4c7e-9a4d-0e51c1a6d2f1"}],"responses":{"200":{"description":"The target","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Target"},"example":{"id":"5c1f2f7e-8f0b-4c7e-9a4d-0e51c1a6d2f1","kind":"profile","url":"https://www.linkedin.com/in/jane-doe","name":"Jane Doe","headline":"Head of Design at Globex","status":"active","pause_reason":null,"muted":false,"waiting_first_read":false,"unavailable":false,"unread_signals":1,"latest_signal":{"id":"0b8f6a1e-3c1d-4f43-8f5e-7a9a2d6c4e10","target_id":"5c1f2f7e-8f0b-4c7e-9a4d-0e51c1a6d2f1","target_name":"Jane Doe","target_url":"https://www.linkedin.com/in/jane-doe","kind":"position_changed","importance":3,"before":"Designer at Acme","after":"Head of Design at Globex","link":"https://www.linkedin.com/in/jane-doe","occurred_at":"2026-12-01T07:12:00.000Z","unread":true},"last_read_at":"2026-12-01T07:00:00.000Z","added_at":"2026-11-20T09:30:00.000Z"}}}},"401":{"description":"unauthorized: The API key is missing, revoked or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: No target with this id on the account's list.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: More than 600 requests (or 60 added pages) in an hour. Retry-After says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"generic: Something went wrong on our side. Try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl: One page, with its latest signal","source":"curl \"https://www.ohspotted.com/api/v1/targets/5c1f2f7e-8f0b-4c7e-9a4d-0e51c1a6d2f1\" \\\n  -H \"Authorization: Bearer YOUR_API_KEY\""},{"lang":"JavaScript","label":"fetch: One page, with its latest signal","source":"const response = await fetch(\"https://www.ohspotted.com/api/v1/targets/5c1f2f7e-8f0b-4c7e-9a4d-0e51c1a6d2f1\", {\n  headers: {\n    Authorization: \"Bearer YOUR_API_KEY\",\n  },\n});\nconst data = await response.json();\nif (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);\nconsole.log(data);"}]},"patch":{"operationId":"updateTarget","tags":["Targets"],"summary":"Pause, resume, mute or mark a page as seen","description":"Send paused, muted and/or seen. A paused page isn't read and costs nothing; a muted page is still read and its signals are kept, but it isn't in the daily email. seen: true marks every signal found on the page so far as seen. A page paused because it is beyond the plan can't be resumed (target_limit), nor one our team paused (paused_by_team), and resuming needs the credits of one read (no_credits).","parameters":[{"name":"id","in":"path","required":true,"description":"id returned when the page was added","schema":{"type":"string","format":"uuid"},"example":"5c1f2f7e-8f0b-4c7e-9a4d-0e51c1a6d2f1"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"paused":{"type":"boolean","description":"true to pause, false to resume"},"muted":{"type":"boolean","description":"true to leave it out of the email"},"seen":{"type":"boolean","description":"true to mark its signals as seen; false is refused"}}},"example":{"paused":true}}}},"responses":{"200":{"description":"The updated target","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Target"},"example":{"id":"5c1f2f7e-8f0b-4c7e-9a4d-0e51c1a6d2f1","kind":"profile","url":"https://www.linkedin.com/in/jane-doe","name":"Jane Doe","headline":"Head of Design at Globex","status":"active","pause_reason":null,"muted":false,"waiting_first_read":false,"unavailable":false,"unread_signals":1,"latest_signal":{"id":"0b8f6a1e-3c1d-4f43-8f5e-7a9a2d6c4e10","target_id":"5c1f2f7e-8f0b-4c7e-9a4d-0e51c1a6d2f1","target_name":"Jane Doe","target_url":"https://www.linkedin.com/in/jane-doe","kind":"position_changed","importance":3,"before":"Designer at Acme","after":"Head of Design at Globex","link":"https://www.linkedin.com/in/jane-doe","occurred_at":"2026-12-01T07:12:00.000Z","unread":true},"last_read_at":"2026-12-01T07:00:00.000Z","added_at":"2026-11-20T09:30:00.000Z"}}}},"400":{"description":"invalid_option: A setting isn't valid: kind, paused, muted, seen or unread. Also when the body isn't a JSON object, or a required argument is missing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: The API key is missing, revoked or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"no_credits: The account hasn't enough credits for the first daily read of the page being added or resumed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"target_limit: The list is full (2 pages on the free plan, 200 on Spotter), or a page beyond what the plan reads can't be resumed. paused_by_team: Our team paused the page (pause_reason admin): it can't be resumed through the API. Write to us.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: No target with this id on the account's list.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: More than 600 requests (or 60 added pages) in an hour. Retry-After says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"generic: Something went wrong on our side. Try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl: Pause a page","source":"curl -X PATCH \"https://www.ohspotted.com/api/v1/targets/5c1f2f7e-8f0b-4c7e-9a4d-0e51c1a6d2f1\" \\\n  -H \"Authorization: Bearer YOUR_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"paused\":true}'"},{"lang":"JavaScript","label":"fetch: Pause a page","source":"const response = await fetch(\"https://www.ohspotted.com/api/v1/targets/5c1f2f7e-8f0b-4c7e-9a4d-0e51c1a6d2f1\", {\n  method: \"PATCH\",\n  headers: {\n    Authorization: \"Bearer YOUR_API_KEY\",\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"paused\":true}),\n});\nconst data = await response.json();\nif (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);\nconsole.log(data);"},{"lang":"Shell","label":"curl: Leave a page out of the daily email","source":"curl -X PATCH \"https://www.ohspotted.com/api/v1/targets/5c1f2f7e-8f0b-4c7e-9a4d-0e51c1a6d2f1\" \\\n  -H \"Authorization: Bearer YOUR_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"muted\":true}'"},{"lang":"JavaScript","label":"fetch: Leave a page out of the daily email","source":"const response = await fetch(\"https://www.ohspotted.com/api/v1/targets/5c1f2f7e-8f0b-4c7e-9a4d-0e51c1a6d2f1\", {\n  method: \"PATCH\",\n  headers: {\n    Authorization: \"Bearer YOUR_API_KEY\",\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"muted\":true}),\n});\nconst data = await response.json();\nif (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);\nconsole.log(data);"},{"lang":"Shell","label":"curl: Mark what was found on a page as seen","source":"curl -X PATCH \"https://www.ohspotted.com/api/v1/targets/5c1f2f7e-8f0b-4c7e-9a4d-0e51c1a6d2f1\" \\\n  -H \"Authorization: Bearer YOUR_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"seen\":true}'"},{"lang":"JavaScript","label":"fetch: Mark what was found on a page as seen","source":"const response = await fetch(\"https://www.ohspotted.com/api/v1/targets/5c1f2f7e-8f0b-4c7e-9a4d-0e51c1a6d2f1\", {\n  method: \"PATCH\",\n  headers: {\n    Authorization: \"Bearer YOUR_API_KEY\",\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"seen\":true}),\n});\nconst data = await response.json();\nif (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);\nconsole.log(data);"}]},"delete":{"operationId":"removeTarget","tags":["Targets"],"summary":"Stop following a page","description":"Takes the page off the list. Its signals are no longer shown to the account; nothing else changes for the people who follow it too.","parameters":[{"name":"id","in":"path","required":true,"description":"id returned when the page was added","schema":{"type":"string","format":"uuid"},"example":"5c1f2f7e-8f0b-4c7e-9a4d-0e51c1a6d2f1"}],"responses":{"200":{"description":"Removed","content":{"application/json":{"schema":{"type":"object","required":["deleted","id"],"properties":{"deleted":{"type":"boolean"},"id":{"type":"string","format":"uuid"}}},"example":{"deleted":true,"id":"5c1f2f7e-8f0b-4c7e-9a4d-0e51c1a6d2f1"}}}},"401":{"description":"unauthorized: The API key is missing, revoked or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: No target with this id on the account's list.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: More than 600 requests (or 60 added pages) in an hour. Retry-After says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"generic: Something went wrong on our side. Try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl: Stop following a page","source":"curl -X DELETE \"https://www.ohspotted.com/api/v1/targets/5c1f2f7e-8f0b-4c7e-9a4d-0e51c1a6d2f1\" \\\n  -H \"Authorization: Bearer YOUR_API_KEY\""},{"lang":"JavaScript","label":"fetch: Stop following a page","source":"const response = await fetch(\"https://www.ohspotted.com/api/v1/targets/5c1f2f7e-8f0b-4c7e-9a4d-0e51c1a6d2f1\", {\n  method: \"DELETE\",\n  headers: {\n    Authorization: \"Bearer YOUR_API_KEY\",\n  },\n});\nconst data = await response.json();\nif (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);\nconsole.log(data);"}]}},"/targets/{id}/signals":{"get":{"operationId":"listTargetSignals","tags":["Signals"],"summary":"Read what changed on a page","description":"The signals found on one page since the account added it, newest first. A signal is a change between two daily reads: nothing is found between them, and a change made and undone between two reads is never seen.","parameters":[{"name":"id","in":"path","required":true,"description":"id returned when the page was added","schema":{"type":"string","format":"uuid"},"example":"5c1f2f7e-8f0b-4c7e-9a4d-0e51c1a6d2f1"},{"name":"limit","in":"query","description":"Signals returned, newest first","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"unread","in":"query","description":"1 (or true) for the signals not seen yet only; 0 (the default) for all of them","schema":{"type":"integer","enum":[0,1],"default":0}}],"responses":{"200":{"description":"Signals","content":{"application/json":{"schema":{"type":"object","required":["signals","unread_total"],"properties":{"signals":{"type":"array","items":{"$ref":"#/components/schemas/Signal"}},"unread_total":{"type":"integer","description":"Unread signals of what is read (the page, or the whole list), whatever limit and unread leave out"}}},"example":{"signals":[{"id":"0b8f6a1e-3c1d-4f43-8f5e-7a9a2d6c4e10","target_id":"5c1f2f7e-8f0b-4c7e-9a4d-0e51c1a6d2f1","target_name":"Jane Doe","target_url":"https://www.linkedin.com/in/jane-doe","kind":"position_changed","importance":3,"before":"Designer at Acme","after":"Head of Design at Globex","link":"https://www.linkedin.com/in/jane-doe","occurred_at":"2026-12-01T07:12:00.000Z","unread":true}],"unread_total":1}}}},"400":{"description":"invalid_option: A setting isn't valid: kind, paused, muted, seen or unread. Also when the body isn't a JSON object, or a required argument is missing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: The API key is missing, revoked or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: No target with this id on the account's list.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: More than 600 requests (or 60 added pages) in an hour. Retry-After says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"generic: Something went wrong on our side. Try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl: The latest changes on a page","source":"curl \"https://www.ohspotted.com/api/v1/targets/5c1f2f7e-8f0b-4c7e-9a4d-0e51c1a6d2f1/signals?limit=10\" \\\n  -H \"Authorization: Bearer YOUR_API_KEY\""},{"lang":"JavaScript","label":"fetch: The latest changes on a page","source":"const response = await fetch(\"https://www.ohspotted.com/api/v1/targets/5c1f2f7e-8f0b-4c7e-9a4d-0e51c1a6d2f1/signals?limit=10\", {\n  headers: {\n    Authorization: \"Bearer YOUR_API_KEY\",\n  },\n});\nconst data = await response.json();\nif (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);\nconsole.log(data.signals);"},{"lang":"Shell","label":"curl: Only what you haven't seen","source":"curl \"https://www.ohspotted.com/api/v1/targets/5c1f2f7e-8f0b-4c7e-9a4d-0e51c1a6d2f1/signals?unread=1\" \\\n  -H \"Authorization: Bearer YOUR_API_KEY\""},{"lang":"JavaScript","label":"fetch: Only what you haven't seen","source":"const response = await fetch(\"https://www.ohspotted.com/api/v1/targets/5c1f2f7e-8f0b-4c7e-9a4d-0e51c1a6d2f1/signals?unread=1\", {\n  headers: {\n    Authorization: \"Bearer YOUR_API_KEY\",\n  },\n});\nconst data = await response.json();\nif (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);\nconsole.log(data.signals);"}]}},"/signals":{"get":{"operationId":"listSignals","tags":["Signals"],"summary":"Read what changed on all your pages","description":"The signals found on every page of the list since each was added, newest first: the same as The Tea in the app.","parameters":[{"name":"limit","in":"query","description":"Signals returned, newest first","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"unread","in":"query","description":"1 (or true) for the signals not seen yet only; 0 (the default) for all of them","schema":{"type":"integer","enum":[0,1],"default":0}}],"responses":{"200":{"description":"Signals","content":{"application/json":{"schema":{"type":"object","required":["signals","unread_total"],"properties":{"signals":{"type":"array","items":{"$ref":"#/components/schemas/Signal"}},"unread_total":{"type":"integer","description":"Unread signals of what is read (the page, or the whole list), whatever limit and unread leave out"}}},"example":{"signals":[{"id":"0b8f6a1e-3c1d-4f43-8f5e-7a9a2d6c4e10","target_id":"5c1f2f7e-8f0b-4c7e-9a4d-0e51c1a6d2f1","target_name":"Jane Doe","target_url":"https://www.linkedin.com/in/jane-doe","kind":"position_changed","importance":3,"before":"Designer at Acme","after":"Head of Design at Globex","link":"https://www.linkedin.com/in/jane-doe","occurred_at":"2026-12-01T07:12:00.000Z","unread":true}],"unread_total":1}}}},"400":{"description":"invalid_option: A setting isn't valid: kind, paused, muted, seen or unread. Also when the body isn't a JSON object, or a required argument is missing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: The API key is missing, revoked or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: More than 600 requests (or 60 added pages) in an hour. Retry-After says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"generic: Something went wrong on our side. Try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl: What changed on your whole list","source":"curl \"https://www.ohspotted.com/api/v1/signals?limit=20\" \\\n  -H \"Authorization: Bearer YOUR_API_KEY\""},{"lang":"JavaScript","label":"fetch: What changed on your whole list","source":"const response = await fetch(\"https://www.ohspotted.com/api/v1/signals?limit=20\", {\n  headers: {\n    Authorization: \"Bearer YOUR_API_KEY\",\n  },\n});\nconst data = await response.json();\nif (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);\nconsole.log(data.signals);"},{"lang":"Shell","label":"curl: Only what you haven't seen","source":"curl \"https://www.ohspotted.com/api/v1/signals?unread=1\" \\\n  -H \"Authorization: Bearer YOUR_API_KEY\""},{"lang":"JavaScript","label":"fetch: Only what you haven't seen","source":"const response = await fetch(\"https://www.ohspotted.com/api/v1/signals?unread=1\", {\n  headers: {\n    Authorization: \"Bearer YOUR_API_KEY\",\n  },\n});\nconst data = await response.json();\nif (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);\nconsole.log(data.unread_total);"}]}},"/signals/seen":{"post":{"operationId":"markSignalsSeen","tags":["Signals"],"summary":"Mark everything as seen","description":"Marks every signal found so far as seen, on every page of the list. No body is needed. For one page, send seen: true to PATCH /targets/{id}.","responses":{"200":{"description":"Everything is seen","content":{"application/json":{"schema":{"type":"object","required":["seen","unread_total"],"properties":{"seen":{"type":"boolean"},"unread_total":{"type":"integer"}}},"example":{"seen":true,"unread_total":0}}}},"401":{"description":"unauthorized: The API key is missing, revoked or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: More than 600 requests (or 60 added pages) in an hour. Retry-After says when to try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"generic: Something went wrong on our side. Try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl: Mark everything as seen","source":"curl -X POST \"https://www.ohspotted.com/api/v1/signals/seen\" \\\n  -H \"Authorization: Bearer YOUR_API_KEY\""},{"lang":"JavaScript","label":"fetch: Mark everything as seen","source":"const response = await fetch(\"https://www.ohspotted.com/api/v1/signals/seen\", {\n  method: \"POST\",\n  headers: {\n    Authorization: \"Bearer YOUR_API_KEY\",\n  },\n});\nconst data = await response.json();\nif (!response.ok) throw new Error(`${data.error.code}: ${data.error.message}`);\nconsole.log(data);"}]}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Personal API key (spt_…), created in your account."}},"schemas":{"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_target","invalid_option","unauthorized","no_credits","target_limit","page_blocked","paused_by_team","not_found","already_watching","too_many_failed_pages","rate_limited","generic"],"description":"Stable code to branch on"},"message":{"type":"string","description":"Human-readable explanation"}}}}},"Usage":{"type":"object","required":["plan","plan_name","credits","targets","target_limit","monthly_credits","simulated","reads_enabled","requests_per_hour","manage_url"],"properties":{"plan":{"type":"string","enum":["free","spotter"],"description":"Plan id"},"plan_name":{"type":"string","description":"Display name of the plan"},"credits":{"type":"integer","description":"Credits left, packs included"},"targets":{"type":"integer","description":"Pages on the list"},"target_limit":{"type":"integer","description":"Pages the plan allows"},"monthly_credits":{"type":"integer","description":"Credits the active pages use in 30 days, at one read a day each"},"simulated":{"type":"boolean","description":"True in demo mode: the news is made up, not read from real pages"},"reads_enabled":{"type":"boolean","description":"False when no page is being looked at (the service isn't set up to read yet)"},"requests_per_hour":{"type":"integer","description":"Requests an account can make an hour"},"manage_url":{"type":"string","description":"Where to manage the account in the app"}}},"Signal":{"type":"object","required":["id","target_id","target_name","target_url","kind","importance","before","after","link","occurred_at","unread"],"properties":{"id":{"type":"string","format":"uuid"},"target_id":{"type":"string","format":"uuid","description":"The target it was found on"},"target_name":{"type":["string","null"],"description":"That page's name; null before a read"},"target_url":{"type":"string","description":"That page's canonical LinkedIn address"},"kind":{"type":"string","enum":["new_post","position_changed","headline_changed","location_changed","open_to_work_on","open_to_work_off","hiring_on","hiring_off","tagline_changed","description_changed","headcount_changed","followers_jump","job_opened","job_closed","job_state_changed","keyword_match","went_quiet","back_active"],"description":"What changed: new_post, position_changed, headline_changed, location_changed, open_to_work_on/off, hiring_on/off, tagline_changed, description_changed, headcount_changed, followers_jump, job_opened, job_closed, job_state_changed"},"importance":{"type":"integer","enum":[1,2,3],"description":"1: small news. 2: worth a look. 3: the kind of change you want to hear about quickly."},"before":{"type":["string","null"],"description":"The previous value, when there is one"},"after":{"type":["string","null"],"description":"The new value, or what is new (a post's start)"},"link":{"type":["string","null"],"description":"Where to see it on LinkedIn"},"occurred_at":{"type":"string","format":"date-time","description":"When it happened if the page says it, else when it was noticed"},"unread":{"type":"boolean","description":"Found after the account last looked at the target"}}},"Target":{"type":"object","required":["id","kind","url","name","headline","status","pause_reason","muted","waiting_first_read","unavailable","unread_signals","latest_signal","last_read_at","added_at"],"properties":{"id":{"type":"string","format":"uuid","description":"Id of this entry of the list"},"kind":{"type":"string","enum":["profile","company","job"]},"url":{"type":"string","description":"The page's canonical LinkedIn address"},"name":{"type":["string","null"],"description":"From the latest read; null before it"},"headline":{"type":["string","null"],"description":"Headline, tagline or job's company"},"status":{"type":"string","enum":["active","paused"]},"pause_reason":{"type":["string","null"],"enum":["user","credits","plan","admin",null],"description":"Why a paused page is paused: you, no credits left, or beyond the free plan"},"muted":{"type":"boolean","description":"Left out of the daily email"},"waiting_first_read":{"type":"boolean","description":"The first read isn't done yet"},"unavailable":{"type":"boolean","description":"The page can't be read any more"},"unread_signals":{"type":"integer","description":"Signals found since the account last looked"},"latest_signal":{"oneOf":[{"$ref":"#/components/schemas/Signal"},{"type":"null"}]},"last_read_at":{"type":["string","null"],"format":"date-time"},"added_at":{"type":"string","format":"date-time"}}}}}}