# Mantl Account Opening API — Reference **Source:** Mantl Support Center — Account Opening API article **Captured:** 2026-04-30 --- ## Overview The MANTL Account Opening API provides programmatic access to application creation and account opening functionality. REST-based, JSON request/response, standard HTTP codes. - **UAT base URL:** `https://api.uat.mantl.com/rest/` - **PROD base URL:** `https://api.mantl.com/rest/` - UAT does not affect live data or production resources --- ## OpenAPI Spec (Swagger UI) | Environment | URL | Formats | |---|---|---| | UAT | https://api.uat.mantl.com/rest/docs | JSON, YAML | | PROD | https://api.mantl.com/rest/docs | JSON, YAML | The JSON and YAML links on the docs page can be imported directly into Postman. --- ## Authentication - Authentication method: **API key** - Passed via: `Authorization` header - **No prefix** — provide the raw key as the entire header value (not `Bearer ` or `Basic `) - API keys managed in MANTL Console → API Module (requires appropriate permission) | Environment | Key prefix | |---|---| | UAT | `mtlsauat_` | | PROD | `mtlsa_` | **Security:** Keep API keys out of email, Slack, GitHub, and any client-side code. Individual API keys can be scoped to minimum required resources — check OpenAPI spec for resource requirements per operation. All requests must use HTTPS. Plain HTTP and unauthenticated requests will fail, including utility operations. --- ## Idempotency - Supported on all PATCH, POST, and PUT methods - Pass `Idempotency-Key` header with a unique string (up to 255 characters) - Allowed characters: alphanumeric, `-`, `+`, `/`, `=` (supports UUID, hex, base64, base64url) - Keys cached for **48 hours** — duplicate requests beyond 48 hours may execute twice - If original request hasn't completed, parallel requests return `409 Conflict` - Replayed responses include `Original-Request-Id` header --- ## API Console Permissions (in MANTL Console) Three permission levels for FI employees: 1. **View API keys** — view all keys associated with the FI 2. **Create and expire API keys** — create/expire any key 3. **View full request and response payloads** — view payload audit logs Requires API Module to be enabled in MANTL Console. --- ## Error Handling | Code range | Meaning | |---|---| | 2xx | Success | | 4xx | Client error (bad params, missing required field, invalid product ID, etc.) | | 5xx | MANTL server error | All client errors include an error code. For support, include the `request ID` in any support ticket. --- ## Relevant to AIO CTC Onboarding Build ### Endpoint in use `POST /rest/applications` (`applicationCreate` in Swagger) ### Open question (as of 2026-04-30) Schema only documents `firstName` and `lastName` for person entities. `middleName`, `middleInitial`, and `suffix` undocumented — awaiting Mani's response and Postman validation. ### Auth for testing To test in Postman against UAT: 1. Get a `mtlsauat_` API key from MANTL Console → API Module 2. Set `Authorization: ` header (raw key value, no prefix) 3. Import spec from https://api.uat.mantl.com/rest/docs (JSON or YAML link) ### Contact for API key access Aaron Landers or Logan Drew (Zendesk ticket in flight for broader prefill scope) --- ## Related Notes - `Meeting Notes/AIO Checking CTC Onboarding.md` - `CMG/AIO PRD Analysis — 2026-04-16.md` Tags: #mantl #api #authentication #account-opening #aio #postman ## How to Get the Full Swagger Spec (Browser Method) The `/rest/docs` page is JavaScript-rendered — the JSON/YAML spec links are not accessible to automated fetchers. To grab the spec URL: 1. Open `https://api.uat.mantl.com/rest/docs` in your browser 2. Look for **JSON** and **YAML** links in the Swagger UI top bar (next to the API title) 3. Click either link — this opens the raw spec file 4. Save the file, or copy the URL and import it into Postman directly 5. **Alt method:** DevTools → Network tab → refresh the page → filter for `.json` or `.yaml` — the spec fetch request will appear with the exact URL Once the spec URL is confirmed, update this note and `mantl/api_investigation.md` in the project repo. Tags: #mantl #swagger #postman #action-required ## 2026-04-30 Update: Middle Name / Suffix Field Status Aaron (Mantl account manager) confirmed on implementation call: - **Middle initial** — required field in the Mantl online application flow - **Suffix** — optional field, available if provided The generic public swagger at `/rest/docs` does not expose these fields. The full AIO-configured payload schema will come from **Nick and Matt** at Mantl via Logan's open support ticket. **API keys:** No dev portal exists. Logan added explicit comment to ticket requesting UAT and dev environment API keys. Aaron tagged Nick and Matt and will follow up. Tags: #mantl #api #middle-name #suffix #field-names-pending