curl --request DELETE \
--url https://api.parser-app.com/v1/emails/{email_id}/tags/{tag} \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.parser-app.com/v1/emails/{email_id}/tags/{tag}"
headers = {"X-API-Key": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.parser-app.com/v1/emails/{email_id}/tags/{tag}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.parser-app.com/v1/emails/{email_id}/tags/{tag}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.parser-app.com/v1/emails/{email_id}/tags/{tag}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.parser-app.com/v1/emails/{email_id}/tags/{tag}")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.parser-app.com/v1/emails/{email_id}/tags/{tag}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"email_id": "<string>",
"thread_id": "<string>",
"mailbox_id": "<string>",
"provider_message_id": "<string>",
"message_id": "<string>",
"in_reply_to": "<string>",
"references": [
"<string>"
],
"from": "<string>",
"to": [
"<string>"
],
"cc": [
"<string>"
],
"subject": "<string>",
"received_at": "2023-11-07T05:31:56Z",
"size_bytes": 123,
"attachments": [
{
"filename": "<string>",
"content_type": "<string>",
"size_bytes": 123,
"sha256": "<string>"
}
],
"outcome": "<string>",
"job_id": "<string>",
"routing": {
"intent": "new_submission",
"confidence": 123,
"model": "<string>",
"served_model": "<string>"
},
"tags": [
"<string>"
],
"raw_stored": true
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>"
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Remove a tag from an email
Removing a tag it does not have changes nothing. Audited.
curl --request DELETE \
--url https://api.parser-app.com/v1/emails/{email_id}/tags/{tag} \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.parser-app.com/v1/emails/{email_id}/tags/{tag}"
headers = {"X-API-Key": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.parser-app.com/v1/emails/{email_id}/tags/{tag}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.parser-app.com/v1/emails/{email_id}/tags/{tag}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.parser-app.com/v1/emails/{email_id}/tags/{tag}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.parser-app.com/v1/emails/{email_id}/tags/{tag}")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.parser-app.com/v1/emails/{email_id}/tags/{tag}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"email_id": "<string>",
"thread_id": "<string>",
"mailbox_id": "<string>",
"provider_message_id": "<string>",
"message_id": "<string>",
"in_reply_to": "<string>",
"references": [
"<string>"
],
"from": "<string>",
"to": [
"<string>"
],
"cc": [
"<string>"
],
"subject": "<string>",
"received_at": "2023-11-07T05:31:56Z",
"size_bytes": 123,
"attachments": [
{
"filename": "<string>",
"content_type": "<string>",
"size_bytes": 123,
"sha256": "<string>"
}
],
"outcome": "<string>",
"job_id": "<string>",
"routing": {
"intent": "new_submission",
"confidence": 123,
"model": "<string>",
"served_model": "<string>"
},
"tags": [
"<string>"
],
"raw_stored": true
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>"
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
API key
Response
Successful Response
A tracked inbound email: its envelope and what became of it, never its body.
Stable: a redelivery of the same message is the same email
Its thread: the mailbox and the thread's root Message-ID
Null when posted to /v1/intake/email with an API key
Its Message-ID, or the provider's id for it
The Message-ID header, without its angle brackets
The References header's message ids, oldest first
The raw message's size
Every attachment, processable or not
Show child attributes
Show child attributes
job, merged, ignored: or refused
The job it started or belongs to: its thread's job when it was handled
The router's verdict; null when not routed
Show child attributes
Show child attributes
Its raw .eml is kept: GET /v1/emails/{email_id}/raw