{"openapi":"3.1.0","info":{"title":"FCC Registry API","version":"1.0.0","description":"Search public FCC equipment-authorization listings, inspect source filings, and retrieve individual public exhibits. An independent service using FCC source records. A registry match confirms an identifier. Current authorization and a match to a particular retail product require separate evidence."},"servers":[{"url":"https://fcc.administrativerecord.org"}],"components":{"securitySchemes":{"bearerKey":{"type":"http","scheme":"bearer","description":"A user-created FCC API key. Send Authorization: Bearer followed by the full key. Keep keys in your server."},"managementSession":{"type":"apiKey","in":"cookie","name":"__Host-fcc_session","description":"Obtained by verifying an emailed one-time code in the account portal. Expires after seven days."}},"schemas":{"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"],"examples":[{"error":{"code":"quota_exceeded","message":"The UTC daily request limit for this account has been reached."}}]},"Applicant":{"type":"object","properties":{"applicant_name":{"type":["string","null"]},"listing_rows":{"type":"integer","minimum":0},"first_action":{"type":"string","format":"date"},"last_action":{"type":"string","format":"date"}},"required":["applicant_name","listing_rows","first_action","last_action"]},"Registry":{"type":"object","properties":{"fcc_id":{"type":"string","examples":["A4RH2G2-42"],"description":"Full FCC ID as registered, preserving punctuation. Percent-encode it when used as a URL path segment."},"registry_match":{"type":"boolean"},"listing_rows":{"type":"integer","minimum":0},"applicants":{"type":"array","items":{"$ref":"#/components/schemas/Applicant"}}},"required":["fcc_id","registry_match","listing_rows","applicants"],"examples":[{"fcc_id":"A4RH2G2-42","registry_match":true,"listing_rows":1,"applicants":[{"applicant_name":"Google LLC","listing_rows":1,"first_action":"2013-05-17","last_action":"2013-05-17"}]}]},"RefreshError":{"type":"object","properties":{"message":{"type":"string"},"upstream_status":{"type":["integer","null"],"minimum":0}},"required":["message","upstream_status"]},"CacheEntry":{"type":"object","properties":{"state":{"type":"string","enum":["hit","miss","stale","uncached"]},"fetched_at":{"type":"string","format":"date-time"},"expires_at":{"type":["string","null"],"format":"date-time"},"last_refresh_error":{"$ref":"#/components/schemas/RefreshError"}},"required":["state","fetched_at","expires_at"]},"FilingError":{"type":"object","properties":{"stage":{"type":"string","enum":["form_731","exhibit_index"]},"message":{"type":"string"},"source_url":{"type":["string","null"],"format":"uri"},"upstream_status":{"type":"integer","minimum":0}},"required":["stage","message","source_url"]},"Exhibit":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9]+$"},"title":{"type":["string","null"]},"exhibit_type":{"type":["string","null"]},"submitted":{"type":["string","null"],"description":"Date in the FCC exhibit table, usually MM/DD/YYYY."},"format":{"type":["string","null"]},"available":{"type":["string","null"],"description":"Availability date as published by the FCC."},"url":{"type":"string","format":"uri"}},"required":["id","title","exhibit_type","submitted","format","available","url"]},"Filing":{"type":"object","properties":{"application_id":{"type":"string","examples":["f0j7HF8eqysxKMxHa1LE+g=="],"description":"Opaque FCC filing identifier. URL-encode it when sending it in a query string."},"fcc_id":{"type":"string","examples":["A4RH2G2-42"],"description":"Full FCC ID as registered, preserving punctuation. Percent-encode it when used as a URL path segment."},"final_action_date":{"type":"string","format":"date"},"form_731_url":{"type":["string","null"],"format":"uri"},"exhibit_index_url":{"type":["string","null"],"format":"uri"},"grant_url":{"type":"string","format":"uri"},"correspondence_url":{"type":"string","format":"uri"},"product_description":{"type":["string","null"]},"equipment_class":{"type":["string","null"]},"indexed_exhibits":{"type":["integer","null"],"minimum":0,"description":"Published exhibit count when given, including entries without a public link."},"public_exhibit_status":{"const":"none_available_for_public_review"},"public_exhibits":{"type":"array","items":{"$ref":"#/components/schemas/Exhibit"}},"status":{"type":"string","enum":["complete","partial"]},"errors":{"type":"array","items":{"$ref":"#/components/schemas/FilingError"}},"cache":{"type":"object","properties":{"form_731":{"$ref":"#/components/schemas/CacheEntry"},"exhibit_index":{"$ref":"#/components/schemas/CacheEntry"}},"required":[]}},"required":["application_id","fcc_id","final_action_date","product_description","equipment_class","indexed_exhibits","public_exhibits","status","errors","cache"]},"Product":{"allOf":[{"$ref":"#/components/schemas/Registry"},{"type":"object","properties":{"source":{"type":"string","enum":["live_fcc","cached_fcc","cached_application_links"]},"live_listing_rows":{"type":["integer","null"],"minimum":0},"status":{"type":"string","enum":["complete","partial"]},"cache":{"type":"object","properties":{"discovery":{"anyOf":[{"$ref":"#/components/schemas/CacheEntry"},{"type":"null"}]}},"required":["discovery"]},"search_error":{"$ref":"#/components/schemas/RefreshError"},"available_applications":{"type":"integer","minimum":0},"applications":{"type":"array","items":{"$ref":"#/components/schemas/Filing"},"maxItems":3},"next_offset":{"type":["integer","null"],"minimum":0,"description":"Use this offset for the next page. Null marks the last page."}},"required":["source","live_listing_rows","status","cache","available_applications","applications","next_offset"]}],"examples":[{"fcc_id":"A3D9MDNCD-502","registry_match":true,"listing_rows":1,"applicants":[{"applicant_name":"NEC Display Solutions of America, Inc.","listing_rows":1,"first_action":"1995-03-01","last_action":"1995-03-01"}],"source":"cached_fcc","live_listing_rows":1,"status":"complete","cache":{"discovery":{"state":"hit","fetched_at":"2026-11-28T09:00:00.000Z","expires_at":"2026-11-29T09:00:00.000Z"}},"available_applications":1,"next_offset":null,"applications":[{"fcc_id":"A3D9MDNCD-502","application_id":"5HIDiUffQhu/5ufYjGDvKQ==","final_action_date":"1995-03-01","exhibit_index_url":"https://apps.fcc.gov/oetcf/eas/reports/ViewExhibitReport.cfm?mode=Exhibits&RequestTimeout=500&calledFromFrame=N&application_id=5HIDiUffQhu%2F5ufYjGDvKQ%3D%3D&fcc_id=A3D9MDNCD-502","product_description":"Internal CD-ROM Drive W/Audio Port","equipment_class":"JBP - Part 15 Class B Computing Device Peripheral","indexed_exhibits":null,"public_exhibit_status":"none_available_for_public_review","public_exhibits":[],"status":"complete","errors":[],"cache":{"form_731":{"state":"hit","fetched_at":"2026-11-28T09:00:00.000Z","expires_at":"2026-12-05T09:00:00.000Z"},"exhibit_index":{"state":"hit","fetched_at":"2026-11-28T09:00:00.000Z","expires_at":"2026-11-29T09:00:00.000Z"}}}]}]},"ApplicationSource":{"type":"object","properties":{"kind":{"const":"fcc_application"},"application_id":{"type":"string","examples":["f0j7HF8eqysxKMxHa1LE+g=="],"description":"Opaque FCC filing identifier. URL-encode it when sending it in a query string."},"date":{"type":["string","null"],"format":"date"},"url":{"type":"string","format":"uri"}},"required":["kind","application_id","date","url"]},"DocumentEvidence":{"type":"object","properties":{"kind":{"const":"fcc_document"},"application_id":{"type":"string","examples":["f0j7HF8eqysxKMxHa1LE+g=="],"description":"Opaque FCC filing identifier. URL-encode it when sending it in a query string."},"document_id":{"type":"string"},"title":{"type":["string","null"]},"date":{"type":["string","null"],"format":"date"},"url":{"type":"string","format":"uri"}},"required":["kind","application_id","document_id","title","date","url"]},"Confirmed":{"type":"object","properties":{"api_version":{"const":"1"},"status":{"const":"confirmed"},"valid":{"const":true},"fccid":{"type":"string","examples":["A4RH2G2-42"],"description":"Full FCC ID as registered, preserving punctuation. Percent-encode it when used as a URL path segment."},"applicant":{"type":["string","null"]},"product":{"type":["string","null"]},"equipment_class":{"type":["string","null"]},"latest_filing_date":{"type":["string","null"],"format":"date"},"authorization":{"type":"object","properties":{"status":{"const":"unknown"},"as_of":{"type":"null"}},"required":["status","as_of"]},"links":{"type":"object","properties":{"fccid":{"type":"string","format":"uri"}},"required":["fccid"]},"sources":{"type":"array","items":{"$ref":"#/components/schemas/ApplicationSource"}},"evidence":{"type":"array","items":{"$ref":"#/components/schemas/DocumentEvidence"}},"data_status":{"type":"string","enum":["complete","partial"]},"available_applications":{"type":"integer","minimum":0},"next_offset":{"type":["integer","null"],"minimum":0,"description":"Use this offset for the next page. Null marks the last page."},"checked_at":{"type":"string","format":"date-time"}},"required":["api_version","status","valid","fccid","applicant","product","equipment_class","latest_filing_date","authorization","links","sources","evidence","data_status","available_applications","next_offset","checked_at"]},"NoMatch":{"type":"object","properties":{"status":{"const":"not_found"},"valid":{"const":false},"fccid":{"type":"string","examples":["A4RH2G2-42"],"description":"Full FCC ID as registered, preserving punctuation. Percent-encode it when used as a URL path segment."},"suggestions":{"type":"array","items":{},"maxItems":0}},"required":["status","valid","fccid","suggestions"],"examples":[{"status":"not_found","valid":false,"fccid":"A4RNORECORDZZ","suggestions":[]}]},"Account":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"email":{"type":"string","format":"email"},"daily_limit":{"type":["integer","null"],"minimum":0,"description":"Null means unlimited. Accounts begin unlimited."},"usage_today":{"type":"integer","minimum":0}},"required":["id","email","daily_limit","usage_today"]},"AccountEnvelope":{"type":"object","properties":{"account":{"$ref":"#/components/schemas/Account"}},"required":["account"]},"Key":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"prefix":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"revoked_at":{"type":["string","null"],"format":"date-time"}},"required":["id","name","prefix","created_at","revoked_at"]},"Challenge":{"type":"object","properties":{"challenge_id":{"type":"string","pattern":"^[A-Za-z0-9_-]{43}$"},"expires_in":{"type":"integer","const":600}},"required":["challenge_id","expires_in"]}}},"paths":{"/v1/registry/{fcc_id}":{"get":{"operationId":"getRegistry","summary":"Look up an exact FCC ID in the registry","security":[{"bearerKey":[]}],"parameters":[{"name":"fcc_id","in":"path","required":true,"schema":{"type":"string","examples":["A4RH2G2-42"],"description":"Full FCC ID as registered, preserving punctuation. Percent-encode it when used as a URL path segment."}}],"responses":{"200":{"description":"Indexed registry result, including registry_match=false when absent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Registry"}}},"headers":{"X-RateLimit-Limit":{"schema":{"type":"string"},"description":"Daily account allowance as an integer string, or unlimited."},"X-RateLimit-Used":{"schema":{"type":"integer","minimum":0},"description":"Metered requests by all keys on this account today (UTC)."}}},"400":{"description":"Invalid identifier, offset, or filing selection.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Supply an active API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"WWW-Authenticate":{"schema":{"type":"string"}}}},"429":{"description":"The shared account quota for this UTC day has been reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer","minimum":0},"description":"Seconds to the next permitted attempt."}}},"500":{"description":"Unexpected service failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"FCC filing data is temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer","minimum":0},"description":"Seconds to the next permitted attempt."}}}}}},"/v1/products/{fcc_id}":{"get":{"operationId":"getProduct","summary":"Read descriptions, equipment classes, source links and public exhibits","security":[{"bearerKey":[]}],"parameters":[{"name":"fcc_id","in":"path","required":true,"schema":{"type":"string","examples":["A4RH2G2-42"],"description":"Full FCC ID as registered, preserving punctuation. Percent-encode it when used as a URL path segment."}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":999999999,"default":0}}],"description":"Returns up to three filings per page. Follow next_offset until null. A partial response contains the specific upstream errors. A cached stage identifies its retrieval time and can be stale during FCC revalidation.","responses":{"200":{"description":"Filing page, including complete zero-match searches and partial results.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Product"}}},"headers":{"X-RateLimit-Limit":{"schema":{"type":"string"},"description":"Daily account allowance as an integer string, or unlimited."},"X-RateLimit-Used":{"schema":{"type":"integer","minimum":0},"description":"Metered requests by all keys on this account today (UTC)."}}},"400":{"description":"Invalid identifier, offset, or filing selection.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Supply an active API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"WWW-Authenticate":{"schema":{"type":"string"}}}},"429":{"description":"The shared account quota for this UTC day has been reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer","minimum":0},"description":"Seconds to the next permitted attempt."}}},"500":{"description":"Unexpected service failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"FCC filing data is temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer","minimum":0},"description":"Seconds to the next permitted attempt."}}}}}},"/v1/products/{fcc_id}/exhibits/{exhibit_id}/pdf":{"get":{"operationId":"getExhibitPdf","summary":"Download a selected public FCC PDF","security":[{"bearerKey":[]}],"parameters":[{"name":"fcc_id","in":"path","required":true,"schema":{"type":"string","examples":["A4RH2G2-42"],"description":"Full FCC ID as registered, preserving punctuation. Percent-encode it when used as a URL path segment."}},{"name":"exhibit_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9]+$","examples":["1967261"]}},{"name":"application_id","in":"query","required":false,"schema":{"type":"string","examples":["f0j7HF8eqysxKMxHa1LE+g=="],"description":"Opaque FCC filing identifier. URL-encode it when sending it in a query string."},"description":"Required when the FCC ID has multiple filings."}],"responses":{"200":{"description":"Original PDF bytes from the public FCC exhibit.","headers":{"X-RateLimit-Limit":{"schema":{"type":"string"},"description":"Daily account allowance as an integer string, or unlimited."},"X-RateLimit-Used":{"schema":{"type":"integer","minimum":0},"description":"Metered requests by all keys on this account today (UTC)."}},"content":{"application/pdf":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"Invalid identifier, offset, or filing selection.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Supply an active API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"WWW-Authenticate":{"schema":{"type":"string"}}}},"404":{"description":"No matching public exhibit on the selected filing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The exhibit is published in another format.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"The shared account quota for this UTC day has been reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer","minimum":0},"description":"Seconds to the next permitted attempt."}}},"500":{"description":"Unexpected service failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"FCC filing data is temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer","minimum":0},"description":"Seconds to the next permitted attempt."}}}}}},"/validate":{"get":{"operationId":"validateFccId","summary":"Get an identifier match and source evidence for integrations","security":[{"bearerKey":[]}],"description":"A confirmed result identifies a matching FCC ID and may contain partial filing details. The authorization status is unknown. A completed search with no match returns not_found; an unavailable search with no independent match returns HTTP 503.","parameters":[{"name":"fccid","in":"query","required":true,"schema":{"type":"string","examples":["A4RH2G2-42"],"description":"Full FCC ID as registered, preserving punctuation. Percent-encode it when used as a URL path segment."}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":999999999,"default":0}}],"responses":{"200":{"description":"Identifier match or verified absence.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Confirmed"},{"$ref":"#/components/schemas/NoMatch"}]}}},"headers":{"X-RateLimit-Limit":{"schema":{"type":"string"},"description":"Daily account allowance as an integer string, or unlimited."},"X-RateLimit-Used":{"schema":{"type":"integer","minimum":0},"description":"Metered requests by all keys on this account today (UTC)."}}},"400":{"description":"Invalid identifier, offset, or filing selection.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Supply an active API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"WWW-Authenticate":{"schema":{"type":"string"}}}},"429":{"description":"The shared account quota for this UTC day has been reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer","minimum":0},"description":"Seconds to the next permitted attempt."}}},"500":{"description":"Unexpected service failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"FCC filing data is temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer","minimum":0},"description":"Seconds to the next permitted attempt."}}}}}},"/v1/account/challenges":{"post":{"operationId":"requestEmailCode","summary":"Request an email verification code","security":[],"parameters":[{"name":"Origin","in":"header","required":true,"schema":{"type":"string","const":"https://fcc.administrativerecord.org","description":"The account portal supplies its own origin on mutations."}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email","maxLength":254}},"required":["email"]}}}},"responses":{"202":{"description":"Code sent. Retain the challenge ID for verification.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Challenge"}}}},"400":{"description":"Invalid email address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account mutation requires the portal origin.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Verification email request limit reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer","minimum":0},"description":"Seconds to the next permitted attempt."}}},"500":{"description":"Unexpected service failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Email delivery unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/account/verify":{"post":{"operationId":"verifyEmail","summary":"Verify the emailed code and start a management session","security":[],"parameters":[{"name":"Origin","in":"header","required":true,"schema":{"type":"string","const":"https://fcc.administrativerecord.org","description":"The account portal supplies its own origin on mutations."}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"challenge_id":{"type":"string","pattern":"^[A-Za-z0-9_-]{43}$"},"code":{"type":"string","pattern":"^[0-9]{8}$"}},"required":["challenge_id","code"]}}}},"responses":{"200":{"description":"Verified account and new management session.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountEnvelope"}}},"headers":{"Set-Cookie":{"schema":{"type":"string"},"description":"Secure HttpOnly same-site management session cookie."}}},"400":{"description":"Invalid or expired challenge or code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account mutation requires the portal origin.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected service failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/account":{"get":{"operationId":"getAccount","summary":"Get account usage and current limit","security":[{"managementSession":[]}],"responses":{"200":{"description":"Verified account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountEnvelope"}}}},"401":{"description":"Email verification and a current management session are required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected service failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/account/logout":{"post":{"operationId":"logOut","summary":"End this management session","security":[{"managementSession":[]}],"parameters":[{"name":"Origin","in":"header","required":true,"schema":{"type":"string","const":"https://fcc.administrativerecord.org","description":"The account portal supplies its own origin on mutations."}}],"responses":{"204":{"description":"Session ended.","headers":{"Set-Cookie":{"schema":{"type":"string"},"description":"Secure HttpOnly same-site management session cookie."}}},"401":{"description":"Email verification and a current management session are required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account mutation requires the portal origin.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected service failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/account/keys":{"get":{"operationId":"listKeys","summary":"List keys, prefixes and revocation dates","security":[{"managementSession":[]}],"responses":{"200":{"description":"Key metadata for this account.","content":{"application/json":{"schema":{"type":"object","properties":{"keys":{"type":"array","items":{"$ref":"#/components/schemas/Key"}}},"required":["keys"]}}}},"401":{"description":"Email verification and a current management session are required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected service failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"createKey","summary":"Create a named API key","security":[{"managementSession":[]}],"parameters":[{"name":"Origin","in":"header","required":true,"schema":{"type":"string","const":"https://fcc.administrativerecord.org","description":"The account portal supplies its own origin on mutations."}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80,"examples":["IsItSpying production"]}},"required":["name"]}}}},"responses":{"201":{"description":"Save the token now. It is shown only on creation.","content":{"application/json":{"schema":{"type":"object","properties":{"key":{"$ref":"#/components/schemas/Key"},"token":{"type":"string","pattern":"^fcc_[A-Za-z0-9_-]{43}$"}},"required":["key","token"]}}}},"400":{"description":"Invalid key name.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Email verification and a current management session are required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account mutation requires the portal origin.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected service failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/account/keys/{key_id}":{"delete":{"operationId":"revokeKey","summary":"Revoke one of this account’s keys","security":[{"managementSession":[]}],"parameters":[{"name":"Origin","in":"header","required":true,"schema":{"type":"string","const":"https://fcc.administrativerecord.org","description":"The account portal supplies its own origin on mutations."}},{"name":"key_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"204":{"description":"Key revoked."},"401":{"description":"Email verification and a current management session are required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account mutation requires the portal origin.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Key not found on this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected service failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/healthz":{"get":{"operationId":"getHealth","summary":"Identify the running API service","security":[],"responses":{"200":{"description":"Worker is responding.","content":{"application/json":{"schema":{"type":"object","properties":{"service":{"const":"fcc-registry-api"},"status":{"const":"ok"},"version":{"const":"1"}},"required":["service","status","version"]}}}}}},"head":{"operationId":"headHealth","summary":"Check service availability","security":[],"responses":{"200":{"description":"Worker is responding."}}}},"/openapi.json":{"get":{"operationId":"getSpecification","summary":"Download the OpenAPI contract","security":[],"responses":{"200":{"description":"OpenAPI document.","content":{"application/json":{"schema":{"type":"object"}}}}}},"head":{"operationId":"headSpecification","summary":"Check availability of the OpenAPI document","security":[],"responses":{"200":{"description":"Specification available."}}}}}}