# Service list

Retrieving a list of available SMS services on the account

Endpoint: GET /sms
Version: 1.0.0
Security: bearerAuth

## Response 200 fields (application/json):

  - `success` (boolean, required)
    Request status
    Example: true

  - `data` (array, required)
    Example: [{"id":"d151e4f9","type":"ONE_TIME_CODE","status":"service_active","name":"TEST","prefix":"SIM","suffix":"TESTSIMPAY","adult":false,"created_at":"2021-11-08T18:18:53+01:00"}]

  - `data.id` (string, required)
    Service ID

  - `data.type` (string, required)
    SMS Service Type
    Enum: "ONE_TIME_CODE", "CODE_PACK", "API_URL"

  - `data.status` (string, required)
    Service Status
    Enum: "service_new", "service_active", "service_blocked", "service_rejected", "service_verify", "service_ongoing_registration"

  - `data.name` (string, required)
    Service name

  - `data.prefix` (string, required)
    Service prefix, i.e. the first part of the SMS content, e.g. SIM

  - `data.suffix` (string, required)
    Service suffix, i.e. the second part of the SMS content

  - `data.description` (string)
    Service description

  - `data.adult` (boolean, required)
    Information on whether the service is 18+

  - `data.created_at` (string, required)
    Creation date in format: ISO 8601

  - `pagination` (object, required)

  - `pagination.total` (integer, required)
    Total number of records
    Example: 1

  - `pagination.count` (integer, required)
    Number of records on the current page
    Example: 1

  - `pagination.per_page` (integer, required)
    Maximum number of records per page
    Example: 15

  - `pagination.current_page` (integer, required)
    Current page
    Example: 1

  - `pagination.total_pages` (integer, required)
    Total number of pages
    Example: 1

  - `pagination.links` (object, required)
    URLs to pages

  - `pagination.links.next_page` (string,null, required)
    URL to the next page

  - `pagination.links.prev_page` (string,null, required)
    URL to the previous page

## Response 401 fields (application/json):

  - `success` (boolean, required)
    Request status

  - `errorCode` (string, required)
    Error status code
    Enum: "UNAUTHORIZED"

## Response 403 fields (application/json):

  - `success` (boolean, required)
    Request status

  - `errorCode` (string, required)
    Error status code
    Enum: "INVALID_ABILITY_PROVIDED", "IP_ADDRESS_NOT_WHITELISTED"

## Response 404 fields (application/json):

  - `success` (boolean, required)
    Request status

  - `errorCode` (string, required)
    Error status code
    Enum: "SERVICE_NOT_FOUND", "TRANSACTION_NOT_FOUND", "ROUTE_NOT_FOUND"


