---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://docs.sendcorex.com/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://docs.sendcorex.com/llms.txt"
---

Source: https://docs.sendcorex.com/nl/api-reference/receive-emails/organize/snooze

E-mails ontvangen: organiseren

# Snooze

Verberg berichten tot een datum in de toekomst door ze naar de map Gesnoozed te verplaatsen.

POST `https://g.sendcorex.com/v1` command: snooze

Als `snoozed_until` is bereikt, gaat het bericht vanzelf terug naar INBOX, als ongelezen. Gebruik `unsnooze` om het eerder terug te halen.

## Argumenten

- `ids` string[] optioneel
Tot 100 bericht-id's.
- `id` string optioneel
Eén bericht-id. Gebruik dit of `ids`.
- `until` string verplicht
RFC 3339-datum in de toekomst.
bijv. `"2026-10-10T09:00:00+08:00"`
- `from_folder` string optioneel
Map om uit te verplaatsen. De andere mappen van het bericht blijven.

## Snel starten

```
import axios from 'axios';

const response = await axios.post(
  'https://g.sendcorex.com/v1',
  {
    commands: [
      {
        command: "snooze",
        args: {
          id: "Vj0xQUJDMTIz",
          until: "2026-10-10T09:00:00+08:00"
        }
      }
    ]
  },
  { headers: { Authorization: process.env.SENDCOREX_TOKEN } },
);

const [result] = response.data.results;
if (result.type !== 'SUCCESS') throw new Error(`${result.code}: ${result.message}`);
console.log(result.data);
```

## Response

```
{
  "type": "SUCCESS",
  "results": [
    {
      "command": "snooze",
      "id": "0",
      "type": "SUCCESS",
      "data": {
        "items": [
          {
            "id": "Vj0xQUJDMTIz",
            "ok": true,
            "data": {
              "changed": 1,
              "snoozed_until": "2026-10-10T09:00:00+08:00"
            }
          }
        ],
        "ok_count": 1,
        "failed_count": 0
      }
    }
  ]
}
```

## Vinden wat er aan de beurt is

Toon de map `Snoozed` en vergelijk elke `snoozed_until` met de huidige tijd.

Request-body

```
{
  "commands": [
    {
      "command": "list_messages",
      "args": {
        "folder": "Snoozed",
        "limit": 100
      }
    }
  ]
}
```

## Fouten

Fouten op HTTP-niveau geven `type`, `code` en `message` terug. Fouten met CMD komen terug in het resultaat van de opdracht, met HTTP 200.

- 401`TOKEN_EXPIRED`
De access token is verlopen. Roep Refresh Token aan en herhaal het request.
- 401`INVALID_TOKEN`
De token is ongeldig, onbekend of ingetrokken.
- 429`RATE_LIMITED`
Meer dan 15 requests/s of 15 tegelijk voor hetzelfde IP + mailbox. Wacht het aantal seconden uit Retry-After.
- CMD`INVALID_ARGS`
Een verplicht argument ontbreekt of is ongeldig.
- CMD`NOT_FOUND`
Het bericht, de thread of de map bestaat niet voor deze token.
- CMD`INTERNAL`
Serverfout. Het detail wordt alleen in het serverlog geschreven.
