Users

GET /api/users/

Get a list of all registered users.

Returns:

an object mapping user ID to user object.

GET /api/users/(int: user_id)

Get a single user’s details, including a list of their API keys.

Returns:

a single user object

Status Codes:
PUT /api/users/

Create a new user.

Reqjson:

a user object

Status Codes:
Returns:

the new user object

PATCH /api/users/(int: user_id)

Edit an existing user.

Parameters:
  • user_id – the ID the user to edit.

Status Codes:
Returns:

the modified user object

DELETE /api/users/(int: user_id)

Delete an existing user.

Parameters:
  • user_id – the ID of the User to delete.

Status Codes:
PUT /api/users/keys

Create a new API key for the current user.

Request JSON Object:
  • name (string) – name for the new API key

Resjson:

an APIKey object with the key property set to the newly-generated API key. This value will never be available in plaintext again.

Status Codes:
DELETE /api/users/keys/(int: api_key_id)

Delete an existing API key. Deleting an API key will stop it from working forever.

Parameters:
  • api_key_id – the ID of the APIKey to delete.

Status Codes: