> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stateset.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Provision

> Mailbox created or key/quota policy replaced; username remains stable

### Path parameters

**partner\_id** `string` *required*

Resource identifier

### Request body

`HostedSftpMailboxInput`

**enabled** `boolean` *required*

**max\_file\_bytes** `integer (int64)` *required*

**max\_files** `integer (int32)` *required*

**public\_keys** `string[]` *required*

Complete OpenSSH public keys; never private keys or authorized\_keys options.

**quota\_bytes** `integer (int64)` *required*

**route\_outbound\_documents** `boolean`

Use this mailbox as the primary route for new outbound business documents. Suspension blocks partner access but preserves queued outbound documents.

### Response

No response body. Mailbox created or key/quota policy replaced; username remains stable.

### Status codes

| Code | Meaning |
| - | - |
| `200` | Mailbox created or key/quota policy replaced; username remains stable |

### Using this contract

Read the [source OpenAPI document](/spec/edi.json) for declared schemas and alternatives.
This page also includes documented corrections from the [spec overlays](https://github.com/stateset/docs/tree/main/spec/overlays).
Example IDs and values are illustrative; replace them with records from your workspace.

```bash cURL theme={null}
curl --silent --show-error --fail-with-body --request POST \
  --url 'https://api.edi.stateset.com/v1/hosted-sftp/mailboxes/{partner_id}' \
  --header "Authorization: Bearer $EDI_API_TOKEN" \
  --header 'Content-Type: application/json' \
  --data '{
  "enabled": true,
  "max_file_bytes": 1,
  "max_files": 1,
  "public_keys": [
    "string"
  ],
  "quota_bytes": 1,
  "route_outbound_documents": true
}'
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.