List of all sessions

GET/sess-manager

List of all sessions

Documentation: For detailed filtering options, see our URL Filtering Guidelines

Privileges: sms-session-manager.view

Auditlog Event: sms.session.manager.sess.manager.list

Sort attributes:

  • authName
  • ipAddr
  • serverAddr

Filter attributes:

  • authName
  • ipAddr
  • serverAddr
Base URL
https://api-cpaas.sms.es/bulk/sms-session-manager/v1
Authentication

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

Request

Query parameters

allstring

Return all records for given criteria (disables pagination)

Possible values: yes, no
page_sizeinteger

Page size

Default: 10
page_numberinteger

Page number

Default: 1
pagingstring

Paging options in form of &paging=page_num,page_size e.g. paging=1,10

sortstring

Sort options in form of sort=-attribute1,attribute2,-attribute3 (prefix - for descending)

operator(fieldName)string

Search criteria can be specified using the following operators and attributes:

Available Operators:

  • isnull, isnotnull
  • isempty, isnotempty
  • eq, neq
  • startswith, endswith, contains, doesnotcontain
  • lt, lte, gt, gte
  • in, notin
  • between, notbetween

Special Cases:

  1. For operators [isnull, isnotnull, isempty, isnotempty]: field value can be omitted.
  2. For operators [in, notin]: field value must be a comma-separated list. Example: in(status)=active,inactive
  3. For operators [between, notbetween]: field value must be two comma-separated values. Example: between(insertDt)=2024-01-01,2024-12-31

Default Behavior:

  • If operator is omitted, 'eq' is assumed
  • Example: fieldName=fieldValue is equivalent to eq(fieldName)=fieldValue

Example Usage:

  • startswith(name)=EUR # Find records where name starts with "EUR"
  • in(status)=active,inactive # Find records with active or inactive status
  • gt(maxAllowedPrice)=0.05 # Find records where max allowed price is greater than 0.05

Request example

cURL · cURL
curl -L -X GET "https://api-cpaas.sms.es/bulk/sms-session-manager/v1/sess-manager" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer <access_token>"

Responses

List of sessions

application/json
dataobject[]required
Show child attributes
accountIDinteger
accountNamestring
accountStatusstring
Possible values: active, blocked, inactive, draft
authNamestring
blockedboolean
customerstring
ipAddrstring
modestring
ownerBpBriefNamestring
ownerBpNamestring
ownerIdinteger
protocolstring
protocolVersionstring
serverAddrstring
sessionIDstring
sessionLastTickstring
sessionStartstring
statestring
metaobjectrequired
Show child attributes
paginationobjectrequired
Show child attributes
countintegerrequired
currentPageintegerrequired
perPageintegerrequired
totalintegerrequired
totalPagesintegerrequired
Example response
{
  "data": [
    {
      "accountID": 0,
      "accountName": "string",
      "accountStatus": "active",
      "authName": "string",
      "blocked": true,
      "customer": "string",
      "ipAddr": "string",
      "mode": "string",
      "ownerBpBriefName": "string",
      "ownerBpName": "string",
      "ownerId": 0,
      "protocol": "string",
      "protocolVersion": "string",
      "serverAddr": "string",
      "sessionID": "string",
      "sessionLastTick": "string",
      "sessionStart": "string",
      "state": "string"
    }
  ],
  "meta": {
    "pagination": {
      "count": 0,
      "currentPage": 0,
      "perPage": 0,
      "total": 0,
      "totalPages": 0
    }
  }
}