openapi: 3.2.0 info: title: Monite Mailbox domains API contact: name: Monite team url: https://monite.com/about/ email: developers@monite.com termsOfService: https://monite.com/terms version: '1.0' description: 'Operations tagged Mailbox domains across 3 of this provider''s published API definitions: monite-openapi-2023-09-01.json, monite-openapi-2024-05-25.json, monite-openapi.yml. Each path carries the servers of the definition it was published in.' servers: - url: https://api.dev.monite.com/v1 description: Development environment - url: https://api.sandbox.monite.com/v1 description: Sandbox environment - url: https://api.monite.com/v1 description: Production environment (Europe) - url: https://us.api.monite.com/v1 description: Production environment (North America) - url: https://api.monite.oaknorth.co.uk/v1 description: Oak POC environment tags: - name: Mailbox domains paths: /mailbox_domains: get: tags: - Mailbox domains summary: Get mailbox domains description: Get all domains owned by partner_id operationId: get_mailbox_domains parameters: - required: true schema: type: string format: date example: '2023-09-01' name: x-monite-version in: header responses: '200': description: Successful Response content: application/json: schema: $ref: '#/components/schemas/DomainListResponse' '405': description: Method Not Allowed content: application/json: schema: $ref: '#/components/schemas/ErrorSchemaResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorSchemaResponse' '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' security: - HTTPBearer: [] post: tags: - Mailbox domains summary: Create a mailbox domain description: Create domain for the partner_id operationId: post_mailbox_domains parameters: - required: true schema: type: string format: date example: '2023-09-01' name: x-monite-version in: header requestBody: content: application/json: schema: $ref: '#/components/schemas/DomainRequest' required: true responses: '200': description: Successful Response content: application/json: schema: $ref: '#/components/schemas/DomainResponse' '405': description: Method Not Allowed content: application/json: schema: $ref: '#/components/schemas/ErrorSchemaResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorSchemaResponse' '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' security: - HTTPBearer: [] servers: - url: https://api.dev.monite.com/v1 description: Development environment - url: https://api.sandbox.monite.com/v1 description: Sandbox environment - url: https://api.monite.com/v1 description: Production environment (Europe) - url: https://us.api.monite.com/v1 description: Production environment (North America) - url: https://api.monite.oaknorth.co.uk/v1 description: Oak POC environment /mailbox_domains/{domain_id}: delete: tags: - Mailbox domains summary: Delete a mailbox domain description: Delete domain for the partner_id operationId: delete_mailbox_domains_id parameters: - required: true schema: type: string format: date example: '2023-09-01' name: x-monite-version in: header - required: true schema: type: string format: uuid name: domain_id in: path responses: '204': description: Successful Response '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorSchemaResponse' '401': description: Unauthorized content: application/json: schema: $ref: '#/components/schemas/ErrorSchemaResponse' '404': description: Not found content: application/json: schema: $ref: '#/components/schemas/ErrorSchemaResponse' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorSchemaResponse' '405': description: Method Not Allowed content: application/json: schema: $ref: '#/components/schemas/ErrorSchemaResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorSchemaResponse' '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' security: - HTTPBearer: [] servers: - url: https://api.dev.monite.com/v1 description: Development environment - url: https://api.sandbox.monite.com/v1 description: Sandbox environment - url: https://api.monite.com/v1 description: Production environment (Europe) - url: https://us.api.monite.com/v1 description: Production environment (North America) - url: https://api.monite.oaknorth.co.uk/v1 description: Oak POC environment /mailbox_domains/{domain_id}/verify: post: tags: - Mailbox domains summary: Verify a mailbox domain description: Verify domain for the partner_id operationId: post_mailbox_domains_id_verify parameters: - required: true schema: type: string format: date example: '2023-09-01' name: x-monite-version in: header - required: true schema: type: string format: uuid name: domain_id in: path responses: '200': description: Successful Response content: application/json: schema: $ref: '#/components/schemas/VerifyResponse' '405': description: Method Not Allowed content: application/json: schema: $ref: '#/components/schemas/ErrorSchemaResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorSchemaResponse' '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ErrorSchemaResponse' '401': description: Unauthorized content: application/json: schema: $ref: '#/components/schemas/ErrorSchemaResponse' '404': description: Not found content: application/json: schema: $ref: '#/components/schemas/ErrorSchemaResponse' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/ErrorSchemaResponse' '409': description: Business logic error content: application/json: schema: $ref: '#/components/schemas/ErrorSchemaResponse' '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' security: - HTTPBearer: [] servers: - url: https://api.dev.monite.com/v1 description: Development environment - url: https://api.sandbox.monite.com/v1 description: Sandbox environment - url: https://api.monite.com/v1 description: Production environment (Europe) - url: https://us.api.monite.com/v1 description: Production environment (North America) - url: https://api.monite.oaknorth.co.uk/v1 description: Oak POC environment components: schemas: DNSRecordType: type: string enum: - TXT - MX - CNAME DomainRequest: properties: domain: type: string format: hostname description: The domain name, such as `mail.mycompany.com`. Can contain only alphanumeric characters (A..Z a..z 0..9), dots (.), and hyphens (-). Each segment of the domain name must start and end with either a letter or a digit. additionalProperties: false type: object required: - domain HTTPValidationError: properties: detail: items: $ref: '#/components/schemas/ValidationError' type: array type: object ErrorSchema: properties: message: type: string type: object required: - message ValidationError: properties: loc: items: anyOf: - type: string - type: integer type: array msg: type: string type: type: string type: object required: - loc - msg - type ErrorSchemaResponse: properties: error: $ref: '#/components/schemas/ErrorSchema' type: object required: - error VerifyResponse: properties: id: type: string format: uuid description: Entry UUID domain: type: string format: hostname description: The domain name. status: type: string type: object required: - id - domain - status DNSRecord: properties: is_active: type: boolean name: type: string record_purpose: allOf: - $ref: '#/components/schemas/DNSRecordPurpose' description: Purpose of specific entry to distinguish between various TXT entries. record_type: $ref: '#/components/schemas/DNSRecordType' valid: type: string description: Field reflecting validation status by Mailgun. value: type: string type: object required: - is_active - record_type - valid - value DomainResponse: properties: id: type: string format: uuid description: Entry UUID dedicated_ip: type: string description: A dedicated IP address assigned to this mailbox and used to send outgoing email. dns_records: anyOf: - $ref: '#/components/schemas/DNSRecords' - type: object domain: type: string format: hostname description: The domain name. last_updated_at: type: string format: date-time description: The time the domain was updated for the last time status: type: string type: object required: - id - dns_records - domain - status DNSRecordPurpose: type: string enum: - DKIM - SPF DomainListResponse: properties: data: items: $ref: '#/components/schemas/DomainResponse' type: array type: object required: - data DNSRecords: properties: receiving_dns_records: items: $ref: '#/components/schemas/DNSRecord' type: array description: Set of DNS settings required by Mailgun for domain verification before emails receiving is possible. sending_dns_records: items: $ref: '#/components/schemas/DNSRecord' type: array description: Set of DNS settings required by Mailgun for domain verification before emails sending is possible. type: object required: - receiving_dns_records - sending_dns_records securitySchemes: HTTPBearer: type: http scheme: bearer x-refined-from: - monite-openapi-2023-09-01.json - monite-openapi-2024-05-25.json - monite-openapi.yml