{"openapi":"3.1.0","info":{"title":"EPKify API","version":"1.0.0","description":"Programmatic access to manage electronic press kits. Send an existing EPKify API key with `Authorization: Bearer epk_live_...`. Key creation is currently unavailable in the dashboard. Publishing does not require a verified email. Create-as-public, a PATCH that moves a kit to public, and POST /publish share a limit of 10 per user per minute. Pro accounts may set `visibility` to `PASSWORD` with a `password`. Free accounts receive 403 for password protection. `UNLISTED` is rejected with 400 unless `EPK_PRO_PRIVACY` is enabled. Responses include `visibility` and `hasPassword` and never return the password or hash. POST /publish on a password-protected kit returns 409. PATCH visibility to PUBLIC to remove password protection and publish."},"servers":[{"url":"https://epkify.com"}],"externalDocs":{"description":"EPKify API quickstart","url":"https://epkify.com/api/docs"},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"API key","description":"An existing EPKify API key."}},"schemas":{"PressQuote":{"type":"object","properties":{"quote":{"type":"string","minLength":1,"maxLength":500},"source":{"type":"string","minLength":1,"maxLength":100}},"required":["quote","source"]},"CreateEpk":{"allOf":[{"type":"object","properties":{"slug":{"type":"string","minLength":1,"maxLength":50,"allOf":[{"pattern":"^[a-z0-9-]+$"},{"pattern":"^[a-z]"},{"pattern":"[a-z0-9]$"}]},"theme":{"type":"string","enum":["classic","midnight"]},"displayName":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"tagline":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"shortBio":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}]},"longBio":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"instagram":{"anyOf":[{"type":"string"},{"type":"null"}]},"facebook":{"anyOf":[{"type":"string"},{"type":"null"}]},"spotify":{"anyOf":[{"type":"string"},{"type":"null"}]},"tiktok":{"anyOf":[{"type":"string"},{"type":"null"}]},"soundcloud":{"anyOf":[{"type":"string"},{"type":"null"}]},"website":{"anyOf":[{"type":"string"},{"type":"null"}]},"contactEmail":{"anyOf":[{"type":"string"},{"type":"null"}]},"contactPhone":{"anyOf":[{"type":"string"},{"type":"null"}]},"videoUrls":{"default":[],"maxItems":10,"type":"array","items":{"type":"string"}},"pressQuotes":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"quote":{"type":"string","minLength":1,"maxLength":500},"source":{"type":"string","minLength":1,"maxLength":100}},"required":["quote","source"]}}},"required":["slug"]},{"type":"object","properties":{"showPhotos":{"type":"boolean"},"showPressQuotes":{"type":"boolean"},"showMusic":{"type":"boolean"},"showVideos":{"type":"boolean"},"showContactInfo":{"type":"boolean"},"isPublic":{"type":"boolean"},"isDefault":{"type":"boolean"},"theme":{"type":"string","enum":["classic","midnight"]},"visibility":{"type":"string","enum":["DRAFT","PUBLIC","UNLISTED","PASSWORD"]},"password":{"type":"string","minLength":8,"maxLength":128}}}],"description":"Only slug is required to create a draft. Include password to create an EPK with visibility PASSWORD."},"UpdateEpk":{"allOf":[{"type":"object","properties":{"slug":{"type":"string","minLength":1,"maxLength":50,"allOf":[{"pattern":"^[a-z0-9-]+$"},{"pattern":"^[a-z]"},{"pattern":"[a-z0-9]$"}]},"theme":{"type":"string","enum":["classic","midnight"]},"displayName":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"tagline":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"shortBio":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}]},"longBio":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"instagram":{"anyOf":[{"type":"string"},{"type":"null"}]},"facebook":{"anyOf":[{"type":"string"},{"type":"null"}]},"spotify":{"anyOf":[{"type":"string"},{"type":"null"}]},"tiktok":{"anyOf":[{"type":"string"},{"type":"null"}]},"soundcloud":{"anyOf":[{"type":"string"},{"type":"null"}]},"website":{"anyOf":[{"type":"string"},{"type":"null"}]},"contactEmail":{"anyOf":[{"type":"string"},{"type":"null"}]},"contactPhone":{"anyOf":[{"type":"string"},{"type":"null"}]},"videoUrls":{"maxItems":10,"type":"array","items":{"type":"string"}},"pressQuotes":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"quote":{"type":"string","minLength":1,"maxLength":500},"source":{"type":"string","minLength":1,"maxLength":100}},"required":["quote","source"]}}}},{"type":"object","properties":{"showPhotos":{"type":"boolean"},"showPressQuotes":{"type":"boolean"},"showMusic":{"type":"boolean"},"showVideos":{"type":"boolean"},"showContactInfo":{"type":"boolean"},"isPublic":{"type":"boolean"},"isDefault":{"type":"boolean"},"theme":{"type":"string","enum":["classic","midnight"]},"visibility":{"type":"string","enum":["DRAFT","PUBLIC","UNLISTED","PASSWORD"]},"password":{"type":"string","minLength":8,"maxLength":128}}}],"minProperties":1,"description":"Supply at least one supported field. Omitted fields keep their current values. To update only videoUrls, provide at least one nonblank URL. To clear videoUrls, send [] with another field."},"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["unauthorized","forbidden","not_found","validation_error","plan_limit","rate_limited","conflict","internal_error"]},"message":{"type":"string"},"details":{}}}}}}},"security":[{"bearerAuth":[]}],"paths":{"/api/v1/me":{"get":{"summary":"Get current account, plan, and usage","operationId":"getMe","responses":{"200":{"description":"Account info"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/epks":{"get":{"summary":"List your EPKs","operationId":"listEpks","responses":{"200":{"description":"List of EPKs"},"401":{"description":"Unauthorized"}}},"post":{"summary":"Create an EPK","operationId":"createEpk","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateEpk"}}}},"responses":{"201":{"description":"Created"},"400":{"description":"Validation error"},"403":{"description":"Plan limit"},"409":{"description":"Slug conflict"},"429":{"description":"Publish rate limit (10/min; create-as-public only)"}}}},"/api/v1/epks/{epkId}":{"parameters":[{"name":"epkId","in":"path","required":true,"schema":{"type":"string"}}],"get":{"summary":"Get an EPK by id","operationId":"getEpk","responses":{"200":{"description":"EPK"},"404":{"description":"Not found"}}},"patch":{"summary":"Update an EPK","operationId":"updateEpk","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateEpk"}}}},"responses":{"200":{"description":"Updated"},"400":{"description":"Validation error"},"404":{"description":"Not found"},"429":{"description":"Publish rate limit (10/min; draft→public only)"}}},"delete":{"summary":"Delete an EPK","operationId":"deleteEpk","responses":{"200":{"description":"Deleted"},"404":{"description":"Not found"}}}},"/api/v1/epks/{epkId}/publish":{"post":{"summary":"Publish an EPK","operationId":"publishEpk","parameters":[{"name":"epkId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Published"},"404":{"description":"Not found"},"409":{"description":"EPK is password-protected. PATCH visibility to PUBLIC to remove the password."},"429":{"description":"Publish rate limit (10/min)"}}}},"/api/v1/epks/{epkId}/unpublish":{"post":{"summary":"Unpublish an EPK","operationId":"unpublishEpk","parameters":[{"name":"epkId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Unpublished"},"404":{"description":"Not found"}}}}}}