Coinbase Prime API
cURL
curl --request GET \ --url https://api.prime.coinbase.com/v1/entities/{entity_id}/users
{ "users": [ { "id": "54496de6-7cbd-4abb-8489-2675c4d1f8f7", "name": "Frank Malone", "email": "[email protected]", "entity_id": "2c521d6c-1cfb-4371-bf9c-5a42938d3e75", "role": "AUDITOR" } ], "pagination": { "next_cursor": "<string>", "sort_direction": "DESC", "has_next": true } }
List all users associated with a given entity.
UsersService usersService = PrimeServiceFactory.createUsersService(client); ListUsersRequest request = new ListUsersRequest.Builder() .entityId("ENTITY_ID_HERE") .build(); ListUsersResponse response = usersService.listUsers(request);
var usersService = new UsersService(client); var request = new ListUsersRequest("ENTITY_ID_HERE"); var response = usersService.ListUsers(request);
usersService := users.NewUsersService(client) request := &users.ListEntityUsersRequest{ EntityId: "ENTITY_ID_HERE", } response, err := usersService.ListEntityUsers(context.Background(), request)
prime_client = PrimeClient(credentials) request = ListUsersRequest( entity_id="ENTITY_ID_HERE", ) response = prime_client.list_users(request)
primectl list-entity-users --help
const usersService = new UsersService(client); usersService.listUsers({ entityId: 'ENTITY_ID_HERE' }).then(async (response) => { console.log('Users: ', response); })
The entity ID
Cursor used for pagination (last consumed record)
Number of items to retrieve
Sorting order
DESC
ASC
A successful response.
The entity users.
Show child attributes
The unique ID of the user
"54496de6-7cbd-4abb-8489-2675c4d1f8f7"
The name of the user
"Frank Malone"
The email of the user
"[email protected]"
The entity to which this user and associated permissions are identified
"2c521d6c-1cfb-4371-bf9c-5a42938d3e75"
AUDITOR
SIGNATORY
ADMIN
INITIATOR
REVIEWER
TRADER
FULL_TRADER
TEAM_MANAGER
APPROVER
TAX_MANAGER
Cursor to navigate to next page
A boolean value indicating whether there are more items to paginate through
Was this page helpful?