GET
https://shippified.net /api/email-sources List email sources.
Parameters
limitinteger
query
offsetinteger
query
Code samples
cURL
curl -X GET "https://shippified.net/api/email-sources"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
POST
https://shippified.net /api/email-sources Create an email source.
Request body
application/json
idstring
required
userIdstring
required
providerstring
required
labelstring
required
addressstring
statusstring
required
templateIdsstring[]
allowedSendersstring[]
lastPolledAtstring
lastErrorstring
rebuildingboolean
A mailbox rebuild is running in this process right now.
lastRebuildobject
The last "rebuild from mailbox" run.
{
"id": "string",
"userId": "string",
"provider": "imap",
"label": "string",
"address": "string",
"status": "connected",
"templateIds": [
"string"
],
"allowedSenders": [
"string"
],
"lastPolledAt": "2024-01-01T00:00:00Z",
"lastError": "string",
"rebuilding": true,
"lastRebuild": {
"status": "running",
"message": "string",
"startedAt": "2024-01-01T00:00:00Z",
"finishedAt": "2024-01-01T00:00:00Z",
"since": "2024-01-01T00:00:00Z",
"removed": 0,
"ingested": 0,
"duplicates": 0,
"ignored": 0,
"dismissed": 0,
"error": "string"
}
}Code samples
cURL
curl -X POST "https://shippified.net/api/email-sources" \
-H "Content-Type: application/json" \
-d '{"id":"string","userId":"string","provider":"imap","label":"string","address":"string","status":"connected","templateIds":["string"],"allowedSenders":["string"],"lastPolledAt":"2024-01-01T00:00:00Z","lastError":"string","rebuilding":true,"lastRebuild":{"status":"running","message":"string","startedAt":"2024-01-01T00:00:00Z","finishedAt":"2024-01-01T00:00:00Z","since":"2024-01-01T00:00:00Z","removed":0,"ingested":0,"duplicates":0,"ignored":0,"dismissed":0,"error":"string"}}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 Created.
{
"id": "string",
"userId": "string",
"provider": "imap",
"label": "string",
"address": "string",
"status": "connected",
"templateIds": [
"string"
],
"allowedSenders": [
"string"
],
"lastPolledAt": "2024-01-01T00:00:00Z",
"lastError": "string",
"rebuilding": true,
"lastRebuild": {
"status": "running",
"message": "string",
"startedAt": "2024-01-01T00:00:00Z",
"finishedAt": "2024-01-01T00:00:00Z",
"since": "2024-01-01T00:00:00Z",
"removed": 0,
"ingested": 0,
"duplicates": 0,
"ignored": 0,
"dismissed": 0,
"error": "string"
}
}GET
https://shippified.net /api/email-sources/{id} Get one email source.
Parameters
idstring
path
required
Code samples
cURL
curl -X GET "https://shippified.net/api/email-sources/{id}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
404 Not found.
DELETE
https://shippified.net /api/email-sources/{id} Delete email source.
Parameters
idstring
path
required
Code samples
cURL
curl -X DELETE "https://shippified.net/api/email-sources/{id}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Deleted.
PATCH
https://shippified.net /api/email-sources/{id} Update email source.
Parameters
idstring
path
required
Code samples
cURL
curl -X PATCH "https://shippified.net/api/email-sources/{id}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Updated.
404 Not found.
POST
https://shippified.net /api/email-sources/{id}/poll Trigger an on-demand poll of the source.
Parameters
idstring
path
required
Code samples
cURL
curl -X POST "https://shippified.net/api/email-sources/{id}/poll"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Poll result + refreshed source state.
POST
https://shippified.net /api/email-sources/{id}/rebuild Re-read the mailbox from `sinceDays` ago (1–365) through the current parser, replacing the orders this source produced in that window. Runs in the background; progress is reported on the source as `rebuilding` / `lastRebuild`.
Parameters
idstring
path
required
Code samples
cURL
curl -X POST "https://shippified.net/api/email-sources/{id}/rebuild"TypeScript
Python
Go
PHP
Ruby
Java
Responses
202 Started.
409 Already running.
POST
https://shippified.net /api/email/import Manually import a raw email body.
Code samples
cURL
curl -X POST "https://shippified.net/api/email/import"TypeScript
Python
Go
PHP
Ruby
Java
Responses
202 Parsed + ingested.
Updated