Get users

GET/users

Returns users.
Required privileges:

  • biz-core.view (all users must have this privilege)
  • biz-core-own-user.view (if user has this privilege, it will see only his own user in response list).

Audit event:

  • biz.core.v2.user.list
Base URL
https://api-cpaas.sms.es/biz-core/v2
Authentication

OAuth2 — send Authorization: Bearer <access_token>. Token URL: https://accounts-cpaas.sms.es/oauth2/access-token

Request

Query parameters

kindstring

Kind of user

Possible values: user, app
statusstring

Status of user

Possible values: active, inactive, invited, disabled

Request example

cURL · cURL
curl -L -X GET "https://api-cpaas.sms.es/biz-core/v2/users" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer <access_token>"

Responses

List of users

application/json
dataobject[]required
Show child attributes
emailstring
firstNamestring
lastNamestring
statusstring
Possible values: active, inactive, invited, disabled
uuidstring
metaobjectrequired
Show child attributes
paginationobjectrequired
Show child attributes
countintegerrequired
current_pageintegerrequired
linksobjectrequired
Show child attributes
firststring
laststring
nextstring
prevstring
per_pageintegerrequired
totalintegerrequired
total_pagesintegerrequired
Example response
{
  "data": [
    {
      "email": "string",
      "firstName": "string",
      "lastName": "string",
      "status": "active",
      "uuid": "string"
    }
  ],
  "meta": {
    "pagination": {
      "count": 0,
      "current_page": 0,
      "links": {
        "first": "string",
        "last": "string",
        "next": "string",
        "prev": "string"
      },
      "per_page": 0,
      "total": 0,
      "total_pages": 0
    }
  }
}