{"openapi":"3.1.0","info":{"title":"UserSearch Service","description":"Service for searching users","version":"1.0.0"},"paths":{"/v1/search/{accountId}":{"get":{"tags":["Search"],"summary":"Search for accounts by prefix","parameters":[{"in":"path","name":"accountId","schema":{"$ref":"#/components/schemas/AccountID"},"required":true,"description":"An account id"},{"in":"query","name":"prefix","schema":{"type":"string"},"required":true,"description":"The prefix to search for"},{"in":"query","name":"platform","schema":{"$ref":"#/components/schemas/SearchPlatform"},"required":true,"description":"The primary platform to search for"}],"responses":{"200":{"description":"Found accounts","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"accountId":{"$ref":"#/components/schemas/AccountID"},"matches":{"type":"array","items":{"type":"object","properties":{"platform":{"$ref":"#/components/schemas/SearchPlatform"},"value":{"type":"string","description":"The name of the account on the platform"}}}},"matchType":{"type":"string","enum":["exact","prefix"]},"epicMutuals":{"type":"integer"},"sortPosition":{"type":"integer"}}}}}}}},"description":"**Permission Required**: [`social:search:{accountId} READ`](https://egs.jaren.wtf/#resource=social:search:{accountId}&action=2)","security":[{"bearer":["social:search:{accountId} READ"]}]}}},"components":{"schemas":{"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"},"SearchPlatform":{"type":"string","enum":["epic","psn","xbl","steam","nsw"]}},"securitySchemes":{"bearer":{"type":"http","scheme":"bearer"}}},"servers":[{"url":"https://user-search-service-prod.ol.epicgames.com/api"}]}