{"openapi":"3.0.0","info":{"title":"Apple Developer Token API","description":"Generate JSON Web Tokens for use with the Apple Music API.","termsOfService":"","contact":{"name":"GitHub","url":"https://github.com/flex-development/adt-api"},"license":{"name":"License - BSD 3 Clause","url":"https://spdx.org/licenses/BSD-3-Clause.html"},"version":"1.0.0"},"servers":[{"description":"Production","url":"https://adt-api.flexdevelopment.vercel.app"},{"description":"Next","url":"https://adt-api-git-next-flexdevelopment.vercel.app"}],"tags":[],"paths":{"/token":{"post":{"summary":"Create an Apple Developer token","description":"Generates a JSON Web Token (JWT) suitable for use with the Apple Music API.","operationId":"token-post","parameters":[{"name":"expiresIn","in":"query","description":"Expiration time of registered claim key in seconds. Must not exceed `15777000` (6 months in seconds)","schema":{"type":"integer"}},{"name":"team","in":"query","description":"Apple Team ID","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppleDeveloperToken"}}}},"400":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}}},"401":{"description":"NotAuthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotAuthenticated"}}}},"500":{"description":"GeneralError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneralError"}}}}},"security":["BasicAuth"]}}},"components":{"schemas":{"AppleDeveloperToken":{"type":"string"},"BadRequest":{"type":"object","properties":{"className":{"type":"string","example":"bad-request"},"code":{"type":"integer","example":400},"data":{"type":"object","example":{}},"errors":{"type":"object","example":{}},"message":{"type":"string"},"name":{"type":"string","example":"BadRequest"}}},"GeneralError":{"type":"object","properties":{"className":{"type":"string","example":"general-error"},"code":{"type":"integer","example":500},"data":{"type":"object","example":{}},"errors":{"type":"object","example":{}},"message":{"type":"string"},"name":{"type":"string","example":"GeneralError"}}},"NotAuthenticated":{"type":"object","properties":{"className":{"type":"string","example":"not-authenticated"},"code":{"type":"integer","example":401},"data":{"type":"object","example":{}},"errors":{"type":"object","example":{}},"message":{"type":"string"},"name":{"type":"string","example":"NotAuthenticated"}}},"NotImplemented":{"type":"object","properties":{"className":{"type":"string","example":"not-implemented"},"code":{"type":"integer","example":501},"data":{"type":"object","example":{}},"errors":{"type":"object","example":{}},"message":{"type":"string"},"name":{"type":"string","example":"NotImplemented"}}}},"securitySchemes":{"BasicAuth":{"description":"Musickit identifier and private key","type":"http","scheme":"basic"}}},"externalDocs":{"description":"Apple Developer Docs - Getting Keys and Creating Tokens","url":"https://developer.apple.com/documentation/applemusicapi/getting_keys_and_creating_tokens"}}