SSoftLinkSMSDocs
Email

Retrieve a single email

GET
/api/v1/email/{id}

Returns the delivery status and details of a single email owned by the authenticated user.

Authorization

apiKeyAuth
headerX-Api-Key<token>

Your API key, sent as X-Api-Key. Format bsk_<key_id>.<secret>. Create one in the dashboard under Settings → Developer tools.

Path Parameters

id*string

A UUID string identifying this Email Message.

Formatuuid

Response Body

Email retrieved successfully.

application/json
  1. response
id*string
Formatuuid
traffic_class?string

Email is transactional only (receipts, codes, alerts) and needs approval. See GET /sending-profile.

  • promotional - Promotional
  • transactional - Transactional
Default"transactional"
Value in"promotional""transactional"
recipient*string
price*string
currency*|

The currency of the email

batch_id*|

The send this email was part of

Formatuuid
message_id*|

The provider's request id for this send

response_code*|

The response code from the delivery

response_description*|

The response description from the delivery

status*string

Dispatch status of the email

  • pending - Pending
  • sent - Sent
  • delivered - Delivered
  • bounced - Bounced
  • failed - Failed
  • retrying - Retrying
Value in"pending""sent""delivered""bounced""failed""retrying"
created_at*string
Formatdate-time
Example Request
curl -X GET 'https://api.softlinksms.co.ke/api/v1/email/497f6eca-6276-4993-bfeb-53cbbbba6f08'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "traffic_class": "promotional",  "recipient": "string",  "price": "string",  "currency": "string",  "batch_id": "4da22c97-b7d5-4e31-8c3a-03870ebc7b20",  "message_id": "string",  "response_code": 0,  "response_description": "string",  "status": "pending",  "created_at": "2019-08-24T14:15:22Z"}