The Users endpoint is read-only. You cannot create, update, or destroy a user via the REST API.
GET /pro/api/users
Retrieves all users, ordered by id.
Sample request:
$ curl \ -H 'Authorization: Token token="xMsNwttqN5bVNEYcrIF01s65"' \ https://dradis-pro.dev/pro/api/users
Result:
[ { "id": 1, "name": "Admin", "email": "admin@securityroots.com", "created_at": "2018-12-12T15:03:00.000Z", "updated_at": "2018-12-14T20:39:16.000Z" }, { "id": 3, "name": "Daniel", "email": "daniel@securityroots.com", "created_at": "2019-01-08T16:15:24.000Z", "updated_at": "2019-01-08T16:15:24.000Z" } ]
GET /pro/api/users/:id
Retrieves a single user.
Sample request:
$ curl \ -H 'Authorization: Token token="xMsNwttqN5bVNEYcrIF01s65"' \ https://dradis-pro.dev/pro/api/users/3
Result:
{ "id": 3, "name": "Daniel", "email": "daniel@securityroots.com", "created_at": "2019-01-08T16:15:24.000Z", "updated_at": "2019-01-08T16:15:24.000Z" }
Next help article: Projects endpoint →
Your email is kept private. We don't do the spam thing.