Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 16 additions & 10 deletions specs/inbound.openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -416,8 +416,8 @@ paths:
value returned by the previous response to fetch the next page.
Omit on the first request.
schema:
type: integer
example: 1700000000000123
type: string
example: "1700000000000123"
x-codeSamples:
- lang: shell
label: "cURL"
Expand All @@ -433,7 +433,7 @@ paths:
$ref: "#/components/schemas/MessagesListResponse"
example:
data:
- id: 1700000000000123
- id: "1700000000000123"
inbox_id: 1
from: "sender@example.com"
to:
Expand Down Expand Up @@ -565,8 +565,8 @@ components:
required: true
description: Inbound message ID
schema:
type: integer
example: 1700000000000123
type: string
example: "1700000000000123"

schemas:
Folder:
Expand Down Expand Up @@ -678,9 +678,9 @@ components:
type: object
properties:
id:
type: integer
type: string
description: Mailtrap object ID for the message (not the `Message-ID` header value).
example: 1700000000000123
example: "1700000000000123"
inbox_id:
type: integer
example: 1
Expand Down Expand Up @@ -823,7 +823,7 @@ components:
example: 1
last_id:
type:
- integer
- string
- "null"
description: |
Cursor for the next page. `null` when there are no more results.
Expand All @@ -845,6 +845,12 @@ components:
error:
type: string

ForbiddenError:
type: object
properties:
errors:
type: string

responses:
Unauthorized:
description: Unauthorized
Expand All @@ -860,9 +866,9 @@ components:
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
$ref: "#/components/schemas/ForbiddenError"
example:
error: Access forbidden
errors: Access forbidden

NotFound:
description: Not found
Expand Down
Loading