{"openapi":"3.1.0","info":{"title":"Biolinky API","version":"1.0.0","description":"Safely manage a Biolinky page and read its analytics."},"servers":[{"url":"https://biolinky.co/api/v1"}],"security":[{"personalApiKey":[]}],"paths":{"/page":{"get":{"summary":"Get the credential-bound page","responses":{"200":{"description":"Page"},"default":{"description":"Problem Details error response","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"patch":{"summary":"Update the page profile","parameters":[{"$ref":"#/components/parameters/IfMatch"}],"responses":{"200":{"description":"Updated page"},"default":{"description":"Problem Details error response","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/links":{"get":{"summary":"List links","responses":{"200":{"description":"Links"},"default":{"description":"Problem Details error response","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"post":{"summary":"Create a link","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","maxLength":128}}],"responses":{"201":{"description":"Created link"},"default":{"description":"Problem Details error response","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/links/{id}":{"patch":{"summary":"Update a link","responses":{"200":{"description":"Updated link"},"default":{"description":"Problem Details error response","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"delete":{"summary":"Archive a link","responses":{"200":{"description":"Archived link"},"default":{"description":"Problem Details error response","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/links/{id}/restore":{"post":{"summary":"Restore a link","responses":{"200":{"description":"Restored link"},"default":{"description":"Problem Details error response","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/links/order":{"put":{"summary":"Reorder all active links","responses":{"200":{"description":"Reordered links"},"default":{"description":"Problem Details error response","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/socials":{"get":{"summary":"List social links","responses":{"200":{"description":"Social links"},"default":{"description":"Problem Details error response","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/socials/{type}":{"put":{"summary":"Create or update a social link","responses":{"200":{"description":"Social link"},"default":{"description":"Problem Details error response","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"delete":{"summary":"Archive a social link by ID","responses":{"200":{"description":"Archived social link"},"default":{"description":"Problem Details error response","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/analytics":{"get":{"summary":"Read up to 30 days of analytics","responses":{"200":{"description":"Analytics"},"default":{"description":"Problem Details error response","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}}},"components":{"securitySchemes":{"personalApiKey":{"type":"http","scheme":"bearer","bearerFormat":"blky_live_…"}},"parameters":{"IfMatch":{"name":"If-Match","in":"header","required":true,"schema":{"type":"string"}}},"schemas":{"Problem":{"type":"object","required":["type","title","status","code","request_id"],"properties":{"type":{"type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer"},"code":{"type":"string"},"request_id":{"type":"string","format":"uuid"}}}}}}