Caibidhneacht API TempMail

TempMailg Doiciméadú API

Úsáid an doiciméad taighde seo chun do eochair API pearsanta a ghiniúint, ceangal óstach API úsáideora, teachtaireachtaí bosca poist a léamh, boscaí poist úinéir a bhainistiú, agus Temp Mail a chur in oiriúint do do chuid aip nó uathoibrithe féin

Bun-URL API Úsáideora
Formáid iarratais Úsáid a dhéanamh de do eochair API i gcéad cheannachú údarás Bearer agus url deireadh a choimeád glan

Ceannphointí API úsáideora

Úsáideann gach ceannphointe thíos an bonn URL céanna agus an rochtáin Bearer céanna. Déantar iarratais bosca poist, teachtaireachta agus ceangal a scrúdú in aghaidh an chuntais úsáideora a d'údaraíodh.

GET https://v1.tempmailg.com/api/domains?type={type}

Tarraing na bhforbhreathnú atá ceadaithe don phlean úsáideora reatha agus cuntais.

Luachanna cineáil atá ceadaithe: free, premium, all. Níl ach free. Féadfaidh plean Príomhaigh free, premium, nó all.
Faigh forbhreathnú ceadaithe
curl --request GET \
  --url 'https://v1.tempmailg.com/api/domains?type=free' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer YOUR_USER_API_KEY'

Freagra samplach

{
    "status": true,
    "data": {
        "requested_type": "free",
        "allowed_types": [
            "free"
        ],
        "domains": [
            {
                "domain": "example.com",
                "type": "Free",
                "custom": false
            }
        ]
    }
}
POST https://v1.tempmailg.com/api/emails

Cruthaigh bosca poist úinéir nua, randamach, atá úinéir ag an úsáideora d'fhormhuinithe.

Cruthaigh bosca poist randamach
curl --request POST \
  --url 'https://v1.tempmailg.com/api/emails' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer YOUR_USER_API_KEY'

Freagra samplach

{
    "status": true,
    "data": {
        "id": 2301,
        "email": "randombox@example.com",
        "domain": "example.com",
        "expire_at": "2026-06-28T09:49:07+00:00",
        "expires_in_seconds": 600,
        "created_at": "2026-06-28T09:39:07+00:00",
        "email_token": "encrypted-email-token"
    }
}
POST https://v1.tempmailg.com/api/emails/{email}/{username}/{domain}

Nuashonraigh nó athraigh bosca poist úinéir atá ann cheana chun ainm úsáideora nua agus forbhreathnú ceadaithe.

Úsáid a bhfuil bosca poist úinéir ann cheana i {email}.
Nuashonraigh bosca poist úinéir
curl --request POST \
  --url 'https://v1.tempmailg.com/api/emails/current@example.com/demo123/example.com' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer YOUR_USER_API_KEY'

Freagra samplach

{
    "status": true,
    "data": {
        "id": 2302,
        "email": "demo123@example.com",
        "domain": "example.com",
        "expire_at": "2026-06-28T09:49:07+00:00",
        "expires_in_seconds": 600,
        "created_at": "2026-06-28T09:39:07+00:00",
        "email_token": "encrypted-email-token"
    }
}
DELETE https://v1.tempmailg.com/api/emails/{email}

Scrios bosca poist úinéir.

Scríobh bosca poist úinéir
curl --request DELETE \
  --url 'https://v1.tempmailg.com/api/emails/demo123@example.com' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer YOUR_USER_API_KEY'

Freagra samplach

{
    "status": true,
    "message": "Email has been successfully deleted."
}
GET https://v1.tempmailg.com/api/messages?email={email}

Liosta teachtaireachtaí do bhosca poist úinéir.

Ní mór don pharaméadar iarratais ríomhphoist bheith i seilbh cuntais úsáideora d'fhormhuinithe.
Léigh teachtaireachtaí bosca poist
curl --request GET \
  --url 'https://v1.tempmailg.com/api/messages?email=demo123@example.com' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer YOUR_USER_API_KEY'

Freagra samplach

{
    "status": true,
    "mailbox": "randombox@example.com",
    "messages": [
        {
            "is_seen": false,
            "subject": "Welcome to Temp Mail",
            "from": "Example Sender",
            "from_email": "hello@example.org",
            "to": "randombox@example.com",
            "receivedAt": "2026-06-28 09:39:07",
            "id": "ap94AWDg123ELQz07vrVB9dLXlbqZM5NGwYxOJKko8n6m1",
            "html": true,
            "content": "<p>Hello from the inbox.</p>",
            "attachments": [
                {
                    "name": "file.txt",
                    "extension": "txt",
                    "size": 91,
                    "url": "https://v1.tempmailg.com/api/messages/ap94AWDg123ELQz07vrVB9dLXlbqZM5NGwYxOJKko8n6m1/attachments/file.txt"
                }
            ]
        }
    ]
}
GET https://v1.tempmailg.com/api/messages/{messageId}

Léigh teachtaireacht aonair úinéir.

Léigh teachtaireacht amháin
curl --request GET \
  --url 'https://v1.tempmailg.com/api/messages/ap94AWDg123ELQz07vrVB9dLXlbqZM5NGwYxOJKko8n6m1' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer YOUR_USER_API_KEY'

Freagra samplach

{
    "status": true,
    "data": {
        "is_seen": true,
        "subject": "Welcome to Temp Mail",
        "from": "Example Sender",
        "from_email": "hello@example.org",
        "to": "randombox@example.com",
        "receivedAt": "2026-06-28 09:39:07",
        "id": "ap94AWDg123ELQz07vrVB9dLXlbqZM5NGwYxOJKko8n6m1",
        "html": true,
        "content": "<p>Hello from the inbox.</p>",
        "attachments": [
            {
                "name": "file.txt",
                "extension": "txt",
                "size": 91,
                "url": "https://v1.tempmailg.com/api/messages/ap94AWDg123ELQz07vrVB9dLXlbqZM5NGwYxOJKko8n6m1/attachments/file.txt"
            }
        ]
    }
}
DELETE https://v1.tempmailg.com/api/messages/{messageId}

Scríobh teachtaireacht aonair úinéir.

Scrios aon teachtaireacht
curl --request DELETE \
  --url 'https://v1.tempmailg.com/api/messages/ap94AWDg123ELQz07vrVB9dLXlbqZM5NGwYxOJKko8n6m1' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer YOUR_USER_API_KEY'

Freagra samplach

{
    "status": true,
    "message": "Message was deleted successfully."
}
GET https://v1.tempmailg.com/api/messages/{messageId}/attachments/{filename}

Íoslódáil ceangal ó theachtaireacht úinéir

Íoslódáil an comhad go díreach an pointe deireadh
Íoslódáil ceangal
curl --request GET \
  --url 'https://v1.tempmailg.com/api/messages/ap94AWDg123ELQz07vrVB9dLXlbqZM5NGwYxOJKko8n6m1/attachments/file.txt' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer YOUR_USER_API_KEY' \
  --output file.txt
Iompróid íoslódála Tá an ceannphointe seo ag filleadh an comhad iarrtha go díreach in ionad coirp JSON.
An d'achtann tú fianáin?

Úsáidimid fianáin chun do thaithí brabhsála a fheabhsú. Trí úsáid a bhaint as an suíomh seo, deonaíonn tú d’fhógráil fianán.

Níos mó
Loading chat...
Connecting to community chat.