osrs-data-hub
Members

Is this Discord account a member?

GET
/members/{discord_id}

Service keys only. For a guild service that signs people in with Discord itself and lets the hub decide who may come in: one Discord user id in, one verdict out. No category is needed.

A service key always gets a 200. member is true when a hub user with that Discord id exists and is active, with their display name and is_admin, the hub’s admin flag (for the service’s own admin pages; it widens nothing the key reads). Otherwise member and is_admin are false and name is null: an id the hub doesn’t know and a user who left the guild or was removed look exactly alike.

An id that isn’t 15 to 22 digits is a 400, never a 404. For a user key the endpoint doesn’t exist: it gets the 404 of an unknown path, which is also what a hub from before this endpoint answers any key. There is no list and no lookup by name.

Authorization

bearerAuth
AuthorizationBearer <token>

An API key from the hub’s API keys page.

In: header

Path Parameters

discord_id*string

A Discord user id (a snowflake): 15 to 22 digits.

Match^[0-9]{15,22}$

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/members/100000000000000042"
{  "data": {    "discord_id": "string",    "member": true,    "is_admin": true,    "name": "string"  },  "meta": {    "generated_at": "2019-08-24T14:15:22Z"  }}