Create a folder
Create a new inbound folder.
post
Authorizations
Api-TokenstringRequired
API token in Api-Token header
Body
namestring · max: 100RequiredExample:
SupportResponses
201
Folder created
application/json
idintegerOptionalExample:
1namestringOptionalExample:
Support401
Unauthorized
application/json
403
Forbidden
application/json
422
Validation error
application/json
post/api/inbound/folders
curl -X POST https://mailtrap.io/api/inbound/folders \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{ "name": "Support" }'
{
"id": 1,
"name": "Support"
}Last updated
Was this helpful?

