Get email send status
curl -X GET "https://api.supasend.io/v1/send/507f1f77bcf86cd799439011/status" \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY"
import requests
import json
url = "https://api.supasend.io/v1/send/507f1f77bcf86cd799439011/status"
headers = {
"Content-Type": "application/json",
"X-API-Key": "YOUR_API_KEY"
}
response = requests.get(url, headers=headers)
print(response.json())
const response = await fetch("https://api.supasend.io/v1/send/507f1f77bcf86cd799439011/status", {
method: "GET",
headers: {
"Content-Type": "application/json",
"X-API-Key": "YOUR_API_KEY"
}
});
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"net/http"
)
func main() {
req, err := http.NewRequest("GET", "https://api.supasend.io/v1/send/507f1f77bcf86cd799439011/status", nil)
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
req.Header.Set("X-API-Key", "YOUR_API_KEY")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
fmt.Println("Response Status:", resp.Status)
}
require 'net/http'
require 'json'
uri = URI('https://api.supasend.io/v1/send/507f1f77bcf86cd799439011/status')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Get.new(uri)
request['Content-Type'] = 'application/json'
request['X-API-Key'] = 'YOUR_API_KEY'
response = http.request(request)
puts response.body
{
"id": "example_string",
"user_id": "example_string",
"mailbox_id": "example_string",
"ip_id": "example_string",
"from_email": "user@example.com",
"to_email": "user@example.com",
"reply_to": "example_string",
"subject": "example_string",
"body_html": "example_string",
"body_text": "example_string",
"headers": {},
"status": "queued",
"scheduled_at": "2024-12-25T10:00:00Z",
"attempts": 42,
"max_attempts": 42,
"last_error": "example_string",
"message_id": "example_string",
"thread_id": "example_string",
"in_reply_to": "example_string",
"references": [
"example_string"
],
"kind": "",
"sent_at": "2024-12-25T10:00:00Z",
"replied_at": "2024-12-25T10:00:00Z",
"bounced_at": "2024-12-25T10:00:00Z",
"bounce_reason": "example_string",
"created_at": "2024-12-25T10:00:00Z"
}
{
"error": "Bad Request",
"message": "The request contains invalid parameters or malformed data",
"code": 400,
"details": [
{
"field": "email",
"message": "Invalid email format"
}
]
}
{
"error": "Unauthorized",
"message": "Authentication required. Please provide a valid API token",
"code": 401
}
{
"error": "Not Found",
"message": "The requested resource was not found",
"code": 404
}
{
"error": "Internal Server Error",
"message": "An unexpected error occurred on the server",
"code": 500,
"requestId": "req_1234567890"
}
GET
/v1/send/{id}/statusGET
Base URLstring
Target server for requests. Edit to use your own host.
API Key (header: X-API-Key)
X-API-Keystring
RequiredAPI key in the format sk_live_<64 hex characters>
API key in the format
sk_live_<64 hex characters>path
idstring
RequiredMongoDB ObjectID
Request Preview
Response
Response will appear here after sending the request
Authentication
header
X-API-Keystring
RequiredAPI Key for authentication. API key in the format sk_live_\<64 hex characters\>
Path Parameters
Responses
idstring
user_idstring
mailbox_idstring
ip_idstring
from_emailstring
to_emailstring
reply_tostring
subjectstring
body_htmlstring
body_textstring
headersobject
statusstring
Allowed values:
queuedprocessingsentfailedscheduledcancelledscheduled_atstring
attemptsinteger
max_attemptsinteger
last_errorstring
message_idstring
RFC 5322 Message-ID, assigned when the job is created
thread_idstring
Unibox thread this send belongs to (set once it is part of a conversation)
in_reply_tostring
referencesstring[]
kindstring
Allowed values:
replyforwardsent_atstring
replied_atstring
First inbound reply received (stamped by inbox sync)
bounced_atstring
bounce_reasonstring
created_atstring
Was this page helpful?