Download attachment
GET/v1/attachments/:id
Download attachment
Request
Path Parameters
attachment id
Responses
- 200
- 400
- 429
success
Response Headers
X-Ratelimit-Limit
integer
Example: 100
The maximum number of requests that you can make per period
X-Ratelimit-Remaining
integer
Example: 99
The number of requests remaining in the current rate limit window
X-Ratelimit-Used
integer
Example: 1
The number of requests you have made in the current rate limit window
X-Ratelimit-Reset
integer
Example: 1723886474
The time at which the current rate limit window resets, in UTC epoch seconds
- application/octet-stream
- Schema
Schema
string
attachment not found
- application/json
- Schema
- Example (from schema)
Schema
- request_error
- api_error
error
object
type
object
Type of error encountered.
oneOf
Typically means there's a problem with the request that you made.
Typically means there's a problem with the Temp Mail API.
Error code. Some common codes are not_found
, invalid_api_key
, rate_limited
, validation_error
.
meta
object
Information about this response.
Unique ID for the request relating to this response. Provide this when contacting Temp Mail support about a specific request.
{
"error": {
"type": "request_error",
"code": "not_found",
"detail": "Message not found"
},
"meta": {
"request_id": "a48b927e-3a24-42ff-a748-d516e5474f85"
}
}
rate limit error
- application/json
- Schema
- Example (from schema)
Schema
- request_error
error
object
type
object
Type of error encountered.
oneOf
Typically means there's a problem with the request that you made.
meta
object
Information about this response.
Unique ID for the request relating to this response. Provide this when contacting Temp Mail support about a specific request.
{
"error": {
"type": "request_error",
"code": "rate_limited",
"detail": "You have reached your rate limit. Please try again later."
},
"meta": {
"request_id": "a48b927e-3a24-42ff-a748-d516e5474f85"
}
}