Get Email account

GET/email-accounts/{id}

Get Email account.

Privileges:

  • biz-core.view

Audit event:

  • biz.core.v2.email.accounts.get

Errors:

  • BIZ_CORE:EMAIL_ACCOUNT_NOTFOUND - Email account with given id not found.
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

Path parameters

idintegerrequired

id.

Request example

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

Responses

Email account data

application/json
canReceivestring
Possible values: yes, no
canSendstring
Possible values: yes, no
idinteger
inHoststring
inPortinteger
inSecuritystring
namestring
outHoststring
outPortinteger
outSecuritystring
statusstring
Possible values: active, suspended
statusDtstring (date-time)
Example response
{
  "canReceive": "yes",
  "canSend": "yes",
  "id": 0,
  "inHost": "string",
  "inPort": 0,
  "inSecurity": "string",
  "name": "string",
  "outHost": "string",
  "outPort": 0,
  "outSecurity": "string",
  "status": "active",
  "statusDt": "2026-01-01T12:00:00Z"
}