REST API Reference

Programmatically interact with your SigninID sandbox.

Base URLhttps://api.signinid.com

Authentication

All API requests require a Bearer token in the Authorization header.

Authorization: Bearer sk_live_your_secret_key_here

Get Latest Inbox Email

GET/v1/inbox/latest

Get the most recent inbox email. Returns null if no email exists.

Example

curl "https://api.signinid.com/v1/inbox/latest?to=user@test.com" \
  -H "Authorization: Bearer sk_live_your_secret_key"

Query Parameters

ParameterTypeRequiredDescription
tostringNoFilter by recipient email (partial match)
afterISO 8601NoOnly return emails received after this timestamp
Tip: Use after parameter with SDKs to wait for new emails.

Response Type: InboxEmail | null

FieldTypeDescription
email_idstringUnique identifier (UUID)
detected_otpstring | nullAuto-extracted verification code
html_bodystring | nullHTML content
text_bodystring | nullPlain text content
from_addressstringSender email address
from_namestring | nullSender display name
to_addressesstring[]Recipient addresses
cc_addressesstring[] | nullCC addresses
subjectstring | nullEmail subject
received_atISO 8601When the email was received
message_idstring | nullRFC 5322 Message-ID
has_attachmentsbooleanWhether email has attachments
attachment_countnumberNumber of attachments
spam_scorenumber | nullSpam score (lower is better)
spam_verdictPASS | FAIL | GRAYSpam classification
spam_rulesobject | nullDetailed spam analysis
virus_verdictPASS | FAIL | GRAY | PROCESSING_FAILEDVirus scan result
spf_verdictsame as aboveSPF authentication
dkim_verdictsame as aboveDKIM verification
dmarc_verdictsame as aboveDMARC compliance

Get Inbox Email by ID

GET/v1/inbox/:email_id

Get a single inbox email by its ID.

Example

curl "https://api.signinid.com/v1/inbox/550e8400-e29b-41d4-a716-446655440000" \
  -H "Authorization: Bearer sk_live_your_secret_key"

Path Parameters

ParameterTypeRequiredDescription
email_idstring (UUID)YesThe email ID to retrieve

Response Type: InboxEmail

Returns 404 if not found.

FieldTypeDescription
email_idstringUnique identifier (UUID)
detected_otpstring | nullAuto-extracted verification code
html_bodystring | nullHTML content
text_bodystring | nullPlain text content
from_addressstringSender email address
from_namestring | nullSender display name
to_addressesstring[]Recipient addresses
cc_addressesstring[] | nullCC addresses
subjectstring | nullEmail subject
received_atISO 8601When the email was received
message_idstring | nullRFC 5322 Message-ID
has_attachmentsbooleanWhether email has attachments
attachment_countnumberNumber of attachments
spam_scorenumber | nullSpam score (lower is better)
spam_verdictPASS | FAIL | GRAYSpam classification
spam_rulesobject | nullDetailed spam analysis
virus_verdictPASS | FAIL | GRAY | PROCESSING_FAILEDVirus scan result
spf_verdictsame as aboveSPF authentication
dkim_verdictsame as aboveDKIM verification
dmarc_verdictsame as aboveDMARC compliance

List Inbox Email IDs

GET/v1/inbox

List inbox email IDs with pagination. Use /v1/inbox/:email_id to fetch full details.

Example

curl "https://api.signinid.com/v1/inbox?to=user@test.com&page=1&per_page=20" \
  -H "Authorization: Bearer sk_live_your_secret_key"

Query Parameters

ParameterTypeDefaultDescription
pageinteger1Page number (1, 2, 3...)
per_pageinteger10Results per page (1-100)
fromstring-Filter by sender (partial match)
tostring-Filter by recipient (partial match)
subjectstring-Filter by subject (partial match)
beforeISO 8601-Emails before this date
afterISO 8601-Emails after this date

Response Type: ListIdsResponse

FieldTypeDescription
datastring[]Array of email IDs
pagination.pagenumberCurrent page number
pagination.per_pagenumberItems per page
pagination.returnednumberActual count returned
pagination.has_morebooleanMore results available
// Example response
{
  "data": [
    "550e8400-e29b-41d4-a716-446655440000",
    "660f9500-f39c-52e5-b827-557766551111"
  ],
  "pagination": {
    "page": 1,
    "per_page": 10,
    "returned": 2,
    "has_more": false
  }
}

Get Latest Sent Email

GET/v1/sent/latest

Get the most recent sent email. Returns null if no email exists.

Example

curl "https://api.signinid.com/v1/sent/latest?to=user@example.com" \
  -H "Authorization: Bearer sk_live_your_secret_key"

Query Parameters

ParameterTypeRequiredDescription
tostringNoFilter by recipient email (partial match)

Response Type: SentEmail | null

FieldTypeDescription
email_idstringUnique identifier (UUID)
detected_otpstring | nullAuto-extracted verification code
html_bodystring | nullHTML content
text_bodystring | nullPlain text content
from_addressstringSender email address
from_namestring | nullSender display name
to_addressesstring[]Recipient addresses
cc_addressesstring[] | nullCC addresses
bcc_addressesstring[] | nullBCC addresses
subjectstring | nullEmail subject
sent_atISO 8601When the email was sent
message_idstring | nullRFC 5322 Message-ID
has_attachmentsbooleanWhether email has attachments
attachment_countnumberNumber of attachments
spam_scorenumber | nullSpam score
spam_verdictPASS | FAIL | GRAYSpam classification

Get Sent Email by ID

GET/v1/sent/:email_id

Get a single sent email by its ID.

Example

curl "https://api.signinid.com/v1/sent/660f9500-f39c-52e5-b827-557766551111" \
  -H "Authorization: Bearer sk_live_your_secret_key"

Path Parameters

ParameterTypeRequiredDescription
email_idstring (UUID)YesThe email ID to retrieve

Response Type: SentEmail

Returns 404 if not found.

FieldTypeDescription
email_idstringUnique identifier (UUID)
detected_otpstring | nullAuto-extracted verification code
html_bodystring | nullHTML content
text_bodystring | nullPlain text content
from_addressstringSender email address
from_namestring | nullSender display name
to_addressesstring[]Recipient addresses
cc_addressesstring[] | nullCC addresses
bcc_addressesstring[] | nullBCC addresses
subjectstring | nullEmail subject
sent_atISO 8601When the email was sent
message_idstring | nullRFC 5322 Message-ID
has_attachmentsbooleanWhether email has attachments
attachment_countnumberNumber of attachments
spam_scorenumber | nullSpam score
spam_verdictPASS | FAIL | GRAYSpam classification

List Sent Email IDs

GET/v1/sent

List sent email IDs with pagination. Use /v1/sent/:email_id to fetch full details.

Example

curl "https://api.signinid.com/v1/sent?to=user@example.com&page=1&per_page=20" \
  -H "Authorization: Bearer sk_live_your_secret_key"

Query Parameters

ParameterTypeDefaultDescription
pageinteger1Page number (1, 2, 3...)
per_pageinteger10Results per page (1-100)
fromstring-Filter by sender (partial match)
tostring-Filter by recipient (partial match)
subjectstring-Filter by subject (partial match)
beforeISO 8601-Emails before this date
afterISO 8601-Emails after this date

Response Type: ListIdsResponse

FieldTypeDescription
datastring[]Array of email IDs
pagination.pagenumberCurrent page number
pagination.per_pagenumberItems per page
pagination.returnednumberActual count returned
pagination.has_morebooleanMore results available

Error Responses

StatusCodeDescription
400INVALID_REQUESTInvalid request parameters
401UNAUTHORIZEDMissing or invalid secret key
404NOT_FOUNDEmail not found
429RATE_LIMITEDToo many requests
500INTERNAL_ERRORServer error
{
  "error": {
    "code": "INVALID_REQUEST",
    "message": "Invalid request parameters",
    "details": [
      { "field": "per_page", "message": "Maximum value is 100" }
    ]
  }
}