{"openapi":"3.1.0","info":{"title":"GetRecited read API","version":"1.0.0","description":"Read-only, workspace-scoped API. Obtain a key in Settings → Developer. Use it directly or as OAuth client credentials for a 15-minute downscoped token. Observations are sampled, not guaranteed rankings. Rate limits are per key, per workspace and per organization, per minute. See /auth.md and /developers.md.","contact":{"name":"GetRecited","url":"https://getrecited.com/contact"}},"servers":[{"url":"https://getrecited.com","description":"Production frontend origin; requires a configured application backend."}],"externalDocs":{"url":"https://getrecited.com/developers","description":"GetRecited API documentation"},"paths":{"/api/v1":{"get":{"operationId":"getReadApi","summary":"Describe the authenticated read API and this key's scopes","description":"Describe the authenticated read API and this key's scopes. Requires a valid workspace API key.","security":[{"OAuthClientCredentials":[]},{"ApiKeyBearer":[]},{"ApiKeyHeader":[]}],"x-required-scopes":[],"parameters":[],"responses":{"200":{"description":"Successful read response","content":{"application/json":{"schema":{"type":"object","required":["name","version","scopes"],"properties":{"name":{"type":"string"},"version":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Missing, invalid, revoked or wrong-kind key. Read /auth.md and create a workspace API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"WWW-Authenticate":{"schema":{"type":"string"},"description":"Bearer challenge with resource_metadata URL."}}},"403":{"description":"Missing scope. Ask your workspace administrator to issue a key with the required read scope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Resource does not exist in this workspace. Use an ID from listTrackedBrands.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid input. Correct the typed parameters; inspect field_errors.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"The key's or the workspace's quota for the minute is used. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"string"}}}},"502":{"description":"Invalid upstream response. Retry later; no customer data is substituted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Dependency unavailable. Retry later; do not change credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/brands":{"get":{"operationId":"listTrackedBrands","summary":"List brands tracked by the key's organization with their seven-day blended visibility","description":"List brands tracked by the key's organization with their seven-day blended visibility. Use id (workspace brand ID), not brand_id, for visibility queries. Requires read:brands.","security":[{"OAuthClientCredentials":["read:brands"]},{"ApiKeyBearer":[]},{"ApiKeyHeader":[]}],"x-required-scopes":["read:brands"],"parameters":[],"responses":{"200":{"description":"Successful read response","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"type":"object","required":["id","brand_id","name","slug","domain","is_owned","visibility_7d","tracked_at"],"properties":{"id":{"type":"string","format":"uuid"},"brand_id":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"},"domain":{"type":["string","null"]},"is_owned":{"type":"boolean"},"visibility_7d":{"type":["number","null"]},"tracked_at":{"type":"string","format":"date-time"}}}}}}}}},"401":{"description":"Missing, invalid, revoked or wrong-kind key. Read /auth.md and create a workspace API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"WWW-Authenticate":{"schema":{"type":"string"},"description":"Bearer challenge with resource_metadata URL."}}},"403":{"description":"Missing scope. Ask your workspace administrator to issue a key with the required read scope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Resource does not exist in this workspace. Use an ID from listTrackedBrands.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid input. Correct the typed parameters; inspect field_errors.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"The key's or the workspace's quota for the minute is used. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"string"}}}},"502":{"description":"Invalid upstream response. Retry later; no customer data is substituted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Dependency unavailable. Retry later; do not change credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/brands/{workspace_brand_id}/visibility":{"get":{"operationId":"getBrandVisibility","summary":"Read daily blended visibility for an authorized tracked brand","description":"Read daily blended visibility for an authorized tracked brand. Rows are sampled legacy daily measurements; intervals and percentages require their sample context. Requires read:visibility.","security":[{"OAuthClientCredentials":["read:visibility"]},{"ApiKeyBearer":[]},{"ApiKeyHeader":[]}],"x-required-scopes":["read:visibility"],"parameters":[{"name":"workspace_brand_id","in":"path","required":true,"description":"Workspace brand id returned by listTrackedBrands.","schema":{"type":"string","format":"uuid"}},{"name":"days","in":"query","description":"Number of days to look back.","schema":{"type":"integer","minimum":1,"maximum":90,"default":30}}],"responses":{"200":{"description":"Successful read response","content":{"application/json":{"schema":{"type":"object","required":["data","provenance"],"properties":{"provenance":{"type":"object","description":"Where the figures come from: the metric, its source, the days it covers and how its interval is computed.","required":["metric","source","days","first_day","last_day","interval","generated_at"],"properties":{"metric":{"type":"string"},"source":{"type":"string"},"days":{"type":"integer"},"first_day":{"type":["string","null"],"format":"date"},"last_day":{"type":["string","null"],"format":"date"},"interval":{"type":"string"},"generated_at":{"type":"string","format":"date-time"}}},"data":{"type":"array","items":{"type":"object","required":["day","category_id","visibility_rate","mention_sov","citation_sov","avg_position","sentiment_score","ci_low","ci_high","is_signal","responses_sampled"],"properties":{"day":{"type":"string","format":"date"},"category_id":{"type":"string","format":"uuid"},"visibility_rate":{"type":"number"},"mention_sov":{"type":["number","null"]},"citation_sov":{"type":["number","null"]},"avg_position":{"type":["number","null"]},"sentiment_score":{"type":["number","null"]},"ci_low":{"type":"number"},"ci_high":{"type":"number"},"is_signal":{"type":"boolean"},"responses_sampled":{"type":"integer"}}}}}}}}},"401":{"description":"Missing, invalid, revoked or wrong-kind key. Read /auth.md and create a workspace API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"WWW-Authenticate":{"schema":{"type":"string"},"description":"Bearer challenge with resource_metadata URL."}}},"403":{"description":"Missing scope. Ask your workspace administrator to issue a key with the required read scope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Resource does not exist in this workspace. Use an ID from listTrackedBrands.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid input. Correct the typed parameters; inspect field_errors.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"The key's or the workspace's quota for the minute is used. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"string"}}}},"502":{"description":"Invalid upstream response. Retry later; no customer data is substituted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Dependency unavailable. Retry later; do not change credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/scans":{"get":{"operationId":"listRecentScans","summary":"Read recent scan runs for the key's organization","description":"Read recent scan runs for the key's organization. This endpoint never starts a scan or spends collection credits. Requires read:scans.","security":[{"OAuthClientCredentials":["read:scans"]},{"ApiKeyBearer":[]},{"ApiKeyHeader":[]}],"x-required-scopes":["read:scans"],"parameters":[{"name":"limit","in":"query","description":"Maximum scan rows to return.","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"cursor","in":"query","description":"The next_cursor of the page before; newest runs first.","schema":{"type":"string","maxLength":512}}],"responses":{"200":{"description":"Successful read response","content":{"application/json":{"schema":{"type":"object","required":["data","next_cursor"],"properties":{"next_cursor":{"type":["string","null"],"description":"Pass as cursor for the page after; null on the last page."},"data":{"type":"array","items":{"type":"object","required":["id","status","sample_n","trigger","started_at","finished_at","cost_cents","created_at"],"properties":{"id":{"type":"string","format":"uuid"},"status":{"type":"string"},"sample_n":{"type":"integer"},"trigger":{"type":"string"},"started_at":{"type":["string","null"],"format":"date-time"},"finished_at":{"type":["string","null"],"format":"date-time"},"cost_cents":{"type":"integer"},"created_at":{"type":"string","format":"date-time"}}}}}}}}},"401":{"description":"Missing, invalid, revoked or wrong-kind key. Read /auth.md and create a workspace API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"WWW-Authenticate":{"schema":{"type":"string"},"description":"Bearer challenge with resource_metadata URL."}}},"403":{"description":"Missing scope. Ask your workspace administrator to issue a key with the required read scope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Resource does not exist in this workspace. Use an ID from listTrackedBrands.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid input. Correct the typed parameters; inspect field_errors.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"The key's or the workspace's quota for the minute is used. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"string"}}}},"502":{"description":"Invalid upstream response. Retry later; no customer data is substituted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Dependency unavailable. Retry later; do not change credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/brands/{workspace_brand_id}/sources":{"get":{"operationId":"listCitedSources","summary":"Read the domains the workspace's sampled answers cite for a tracked brand over the last days, with how many answers cite each and its classification","description":"Read the domains the workspace's sampled answers cite for a tracked brand over the last days, with how many answers cite each and its classification. Requires read:sources.","security":[{"OAuthClientCredentials":["read:sources"]},{"ApiKeyBearer":[]},{"ApiKeyHeader":[]}],"x-required-scopes":["read:sources"],"parameters":[{"name":"workspace_brand_id","in":"path","required":true,"description":"Workspace brand id returned by listTrackedBrands.","schema":{"type":"string","format":"uuid"}},{"name":"days","in":"query","description":"Number of days to look back.","schema":{"type":"integer","minimum":1,"maximum":90,"default":30}},{"name":"limit","in":"query","description":"Maximum domains to return, most cited first.","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Successful read response","content":{"application/json":{"schema":{"type":"object","required":["provenance","data"],"properties":{"provenance":{"type":"object","required":["metric","window_start","window_end","eligible_answers"],"properties":{"metric":{"type":"string"},"window_start":{"type":"string","format":"date-time"},"window_end":{"type":"string","format":"date-time"},"eligible_answers":{"type":"integer"}}},"data":{"type":"array","items":{"type":"object","required":["domain","classification","answers","citation_incidence","urls","last_observed"],"properties":{"domain":{"type":"string"},"classification":{"type":"string"},"answers":{"type":"integer"},"citation_incidence":{"type":["number","null"]},"urls":{"type":"integer"},"last_observed":{"type":["string","null"],"format":"date-time"}}}}}}}}},"401":{"description":"Missing, invalid, revoked or wrong-kind key. Read /auth.md and create a workspace API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"WWW-Authenticate":{"schema":{"type":"string"},"description":"Bearer challenge with resource_metadata URL."}}},"403":{"description":"Missing scope. Ask your workspace administrator to issue a key with the required read scope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Resource does not exist in this workspace. Use an ID from listTrackedBrands.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid input. Correct the typed parameters; inspect field_errors.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"The key's or the workspace's quota for the minute is used. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"string"}}}},"502":{"description":"Invalid upstream response. Retry later; no customer data is substituted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Dependency unavailable. Retry later; do not change credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/reports":{"get":{"operationId":"listReports","summary":"List the workspace's frozen reports that have not expired, newest first","description":"List the workspace's frozen reports that have not expired, newest first. Requires read:reports.","security":[{"OAuthClientCredentials":["read:reports"]},{"ApiKeyBearer":[]},{"ApiKeyHeader":[]}],"x-required-scopes":["read:reports"],"parameters":[{"name":"limit","in":"query","description":"Maximum reports to return.","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Successful read response","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"type":"object","required":["id","version","generated_at","expires_at","filters"],"properties":{"id":{"type":"string","format":"uuid"},"version":{"type":"integer"},"generated_at":{"type":"string","format":"date-time"},"expires_at":{"type":"string","format":"date-time"},"filters":{"type":"object","additionalProperties":true}}}}}}}}},"401":{"description":"Missing, invalid, revoked or wrong-kind key. Read /auth.md and create a workspace API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"WWW-Authenticate":{"schema":{"type":"string"},"description":"Bearer challenge with resource_metadata URL."}}},"403":{"description":"Missing scope. Ask your workspace administrator to issue a key with the required read scope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Resource does not exist in this workspace. Use an ID from listTrackedBrands.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid input. Correct the typed parameters; inspect field_errors.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"The key's or the workspace's quota for the minute is used. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"string"}}}},"502":{"description":"Invalid upstream response. Retry later; no customer data is substituted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Dependency unavailable. Retry later; do not change credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/reports/{report_id}":{"get":{"operationId":"getReport","summary":"Retrieve one frozen report as it was taken: its filters, metric version, extraction rules, data watermark and figures","description":"Retrieve one frozen report as it was taken: its filters, metric version, extraction rules, data watermark and figures. Requires read:reports.","security":[{"OAuthClientCredentials":["read:reports"]},{"ApiKeyBearer":[]},{"ApiKeyHeader":[]}],"x-required-scopes":["read:reports"],"parameters":[{"name":"report_id","in":"path","required":true,"description":"Report id returned by listReports.","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful read response","content":{"application/json":{"schema":{"type":"object","required":["report_id","version","filters","metric_version","extraction_rules","data_watermark","generated_at","report"],"properties":{"report_id":{"type":"string","format":"uuid"},"version":{"type":"integer"},"filters":{"type":"object","additionalProperties":true},"metric_version":{"type":"string"},"extraction_rules":{"type":"array","items":{"type":"string"}},"data_watermark":{"type":"string","format":"date-time"},"generated_at":{"type":"string","format":"date-time"},"report":{"type":"object","additionalProperties":true}}}}}},"401":{"description":"Missing, invalid, revoked or wrong-kind key. Read /auth.md and create a workspace API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"WWW-Authenticate":{"schema":{"type":"string"},"description":"Bearer challenge with resource_metadata URL."}}},"403":{"description":"Missing scope. Ask your workspace administrator to issue a key with the required read scope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Resource does not exist in this workspace. Use an ID from listTrackedBrands.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid input. Correct the typed parameters; inspect field_errors.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"The key's or the workspace's quota for the minute is used. Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"string"}}}},"502":{"description":"Invalid upstream response. Retry later; no customer data is substituted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Dependency unavailable. Retry later; do not change credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"schemas":{"Error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","description":"Stable error code, such as unauthenticated or forbidden."},"message":{"type":"string"},"request_id":{"type":"string"},"retry_after":{"type":"integer","minimum":0},"field_errors":{"type":"array","items":{"type":"object","additionalProperties":true}}}}},"securitySchemes":{"OAuthClientCredentials":{"type":"oauth2","flows":{"clientCredentials":{"tokenUrl":"https://getrecited.com/oauth/token","scopes":{"read:brands":"List tracked brands","read:visibility":"Read daily visibility","read:scans":"Read scan runs","read:sources":"Read cited sources","read:reports":"Read frozen reports"}}},"description":"Administrator-provisioned confidential clients: client_id is the key's first 12 characters and client_secret is the full key. No interactive authorization flow."},"ApiKeyBearer":{"type":"http","scheme":"bearer","bearerFormat":"Workspace API key (ctx_...)","description":"Use Authorization: Bearer <key>. Scopes: read:brands, read:visibility, read:scans, read:sources, read:reports. This is not an OAuth token.","x-scopes":{"read:brands":"List tracked brands","read:visibility":"Read daily visibility","read:scans":"Read scan runs","read:sources":"Read cited sources","read:reports":"Read frozen reports"}},"ApiKeyHeader":{"type":"apiKey","in":"header","name":"X-Api-Key","description":"Alternative to Bearer. Send only one credential mechanism."}}}}