This endpoint allows you to perform actions on a specific Member of your Team.
Last updated 1 month ago
Was this helpful?
/api/v1/members
curl -L \ --url 'https://integration.goodaccess.com/api/v1/members' \ --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
[ { "id": "123e1234-aaa1-123b-b1e1-e1aae1af1b12", "created_at": "2024-04-03 15:10:48", "avatar": "https://example.com", "name": "john Doe", "username": "john-doe-example@example.com", "is_user_blocked": true, "is_mfa_active": true } ]
/api/v1/member/{teamMemberId}
ID of team member
curl -L \ --url 'https://integration.goodaccess.com/api/v1/member/{teamMemberId}' \ --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{ "id": "bdf69b20-5165-4dbc-82da-f4252cac5b8c", "name": "John Doe", "email": "john.doe@goodaccess.com", "avatar_url": "bunny.cdn", "is_mfa_active": true, "is_blocked": true }
/api/v1/member
{"name":"Example name","password":"strongPassword"}
curl -L \ --request POST \ --url 'https://integration.goodaccess.com/api/v1/member' \ --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \ --header 'Content-Type: application/json' \ --data '{"name":"Example name","password":"strongPassword"}'
{ "created_id": "bdf69b20-5165-4dbc-82da-f4252cac5b8c", "message": "Member created successfully" }
{"name":"name","password":"strongPassword"}
curl -L \ --request PUT \ --url 'https://integration.goodaccess.com/api/v1/member/{teamMemberId}' \ --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \ --header 'Content-Type: application/json' \ --data '{"name":"name","password":"strongPassword"}'
{ "message": "Member with id <member-id> has been modified." }
curl -L \ --request DELETE \ --url 'https://integration.goodaccess.com/api/v1/member/{teamMemberId}' \ --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{ "message": "User with id <member-id> has been removed." }