{"command":{"effect":"read","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Returns the threads in an inbox, most recently active first. A thread is a conversation made up of one or more emails. The `after` and `before` cursors take a thread ID, and only one of them can be passed. A cursor that is not a UUID, such as a date, returns a 422 validation_error. A cursor thread that is not in the selected folders returns a 404. To find threads by text, sender, recipient, attachment, or date, use the search threads endpoint.","properties":{"path":{"type":"object","properties":{"inbox_id":{"type":"string","examples":["b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1"],"description":"The Inbox ID or the inbox email address, such as `support@acme.com`. A value that contains `@` must be a valid email address, and any other value must be a UUID, or the request returns a 422. The address match is case-insensitive and never falls back to the inbox `name`. An address that matches no inbox returns a 404."}},"required":["inbox_id"],"additionalProperties":false},"query":{"type":"object","properties":{"folders":{"type":"array","items":{"type":"string","enum":["inbox","archive","spam","sent","trash"]},"examples":[["inbox","sent"]],"description":"Comma-separated folders to list, for example `inbox,sent`. Repeating the parameter returns a 422 validation_error. A thread is returned when any of its emails is in one of the folders, so a thread in `inbox` with an email you sent matches both `inbox` and `sent`. Defaults to `inbox`, or to `inbox,archive,sent` when `labels` is set. `spam` and `trash` are only included when you name them."},"labels":{"type":"array","maxItems":50,"items":{"type":"string","format":"uuid"},"examples":[["7f9c1d2e-4a6b-4c3d-8e15-9b0a7c6d5e34"]],"description":"Comma-separated label IDs. Returns threads with any of these labels. Up to 50 IDs. An ID that does not exist in the inbox returns a 404. Repeating the parameter returns a 422 validation_error."},"read":{"type":"boolean","description":"`true` returns threads where every email is read. `false` returns threads with at least one unread email. Only the literal values `true` and `false` are accepted."},"limit":{"type":"integer","minimum":1,"maximum":100,"description":"Number of items to return."},"after":{"type":"string","description":"Return items after this cursor."},"before":{"type":"string","description":"Return items before this cursor."}},"required":[],"additionalProperties":false}},"required":["path"],"additionalProperties":false},"name":"Retrieve a list of inbox threads","id":"resend.inboxes.list-threads","example":{"path":{"inbox_id":"b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1"}},"maxRequests":1,"summary":false}}