{"openapi":"3.1.0","info":{"title":"PublicKey Service","version":"1.0.0"},"paths":{"/v2/publickey/":{"post":{"tags":["V2"],"summary":"Upload public key for your account","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["key","algorithm"],"properties":{"key":{"type":"string","contentEncoding":"base64","description":"The public key, as base64"},"algorithm":{"type":"string","enum":["ed25519"]}}}}}},"responses":{"200":{"description":"Public key created successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicKey"}}}}},"description":"**Permission Required**: [`publickey:public CREATE`](https://egs.jaren.wtf/#resource=publickey:public&action=1)","security":[{"bearer":["publickey:public CREATE"]}]}},"/v2/publickey/eas/":{"post":{"tags":["V2 - EAS"],"summary":"Upload public key for your account (EAS)","description":"Requires an epic_id token with a deployment id of `da32ae9c12ae40e8a112c52e1f17f3ba` (Rocket League)","security":[{"bearer":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["key","algorithm"],"properties":{"key":{"type":"string","contentEncoding":"base64","description":"The public key, as base64"},"algorithm":{"type":"string","enum":["ed25519"]}}}}}},"responses":{"200":{"description":"Public key created successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicKey"}}}}}}},"/v2/publickey/signing":{"get":{"tags":["V2"],"summary":"Get public keys used to sign jwt","responses":{"200":{"description":"Signing public keys","content":{"application/json":{"schema":{"type":"object","properties":{"keys":{"type":"array","items":{"type":"object","properties":{"crv":{"type":"string"},"kid":{"type":"string"},"kty":{"type":"string"},"x":{"type":"string"},"y":{"type":"string"}}}}},"examples":[{"keys":[{"crv":"P-256","kid":"1","kty":"EC","x":"Z1wgnXPU2cGuQ7gmt8ErapzyH4iFOcq6zgM1I5hnT9Y","y":"7Ckc161-P7jkbMtSjToMXrR-3s-O450w_W899513d34"},{"crv":"Ed25519","kid":"20230621","kty":"OKP","x":"zsas3J1p4mt_5V6LdnA1BEqwvFtvG9nYtERMVOEfLoc"}]}]}}}}}}}},"components":{"schemas":{"PublicKey":{"type":"object","properties":{"key":{"type":"string","contentEncoding":"base64"},"account_id":{"$ref":"#/components/schemas/AccountID"},"key_guid":{"type":"string","format":"uuid"},"kid":{"type":"string","examples":["20230621"]},"expiration":{"type":"string","format":"date-time"},"jwt":{"type":"string","examples":["eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJhY2NvdW50X2lkIjoiOTRiMTU2OTUwNmIwNGY5Zjg1NTdhZjYxMWU4YzVlNDciLCJnZW5lcmF0ZWQiOjE3NjAwNDI4NjgsImtleV9ndWlkIjoiYzY0MzMxNDAtZDJiOC00MGVjLWJiMTEtNGY3ZDczMGM5ZmFmIiwia2lkIjoiMjAyMzA2MjEiLCJrZXkiOiJpSjkrM1JiMmx6MGZtUEpPS2dDQUxPOERkUXowY0lDS205MXludFBDSnB3PSIsImV4cGlyYXRpb24iOiIyMDI1LTEyLTA4VDIwOjQ3OjQ4Ljg5NzgwODAzNFoiLCJ0eXBlIjoibGVnYWN5In0.hc12J2IuGg_CN9biFn4RY-rnQIZDjgiZKRk4v-erC4sNohUYS3u1LoL6tEL8uJE_uKRSGxsO7KbJdRQuCc-BBQ"]},"type":{"type":"string","examples":["legacy"]}}},"AccountID":{"type":"string","pattern":"^[0-9a-f]{12}4[0-9a-f]{3}[89ab][0-9a-f]{15}$","examples":["8b0a23cb43af46cb972806f4025a9cba"],"description":"This represents a unique id for an epic games account"}},"securitySchemes":{"bearer":{"type":"http","scheme":"bearer"}}},"servers":[{"url":"https://publickey-service-live.ecbc.live.use1a.on.epicgames.com/publickey"},{"url":"https://publickey-service-live.ecosec.on.epicgames.com/publickey"},{"url":"https://publickey-service-prod.ecbc.live.use1a.on.epicgames.com/publickey"},{"url":"https://publickey-service-prod.ecosec.on.epicgames.com/publickey"}]}