Documentation Index
Fetch the complete documentation index at: https://fieldpulse.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Mintlify Support: API Playground Proxy Rejects Valid URL
To: support@mintlify.com Subject: API Playground proxy returns “invalid URL” for valid AWS API Gateway URL — network evidence includedHi Mintlify team, We’ve been debugging an “invalid URL” error in the API Playground for several hours and have narrowed it down to the Mintlify proxy server itself rejecting our URL. We have network-level evidence showing the exact request/response. We’d appreciate your help diagnosing this.
The Problem
The API Playground’s “Send” button always returns: “An error occurred while making the request: invalid URL” The generated curl command works perfectly from the terminal, returning valid JSON data. The issue is specifically in the/_mintlify/api/request proxy endpoint.
Network Evidence
We captured the exact proxy request/response using Playwright browser automation:Request sent by the playground to the proxy:
Response from the proxy:
{"error": true, "errorMessage": "invalid URL"} with a 200 status code.
The same URL works via curl:
Live Reproduction
- Page: https://fieldpulse.mintlify.app/api-reference/users/retrieve-users-list?playground=open
- Steps: Enter any valid API key in the
x-api-keyfield, click “Send” - Result: “An error occurred while making the request: invalid URL”
- Expected: Live JSON response from the API
/users.
Our Configuration
docs.json api block (minimal — we stripped everything per your help center’s guidance):
OpenAPI spec servers field:
OpenAPI spec securitySchemes:
MDX endpoint pages (generated by @mintlify/scraping):
Validation:
mintlify validatepasses (“success build validation passed”)mint openapi-check openapi/fieldpulse-api.jsonpasses (“success OpenAPI definition is valid”)
What We’ve Already Tried
| Attempt | Result |
|---|---|
Tab-level openapi auto-generation | ”invalid URL” |
MDX stubs from @mintlify/scraping (current) | “invalid URL” |
MDX stubs with spec path: openapi: "openapi/fieldpulse-api.json GET /users" | ”invalid URL” |
Added api.openapi: "openapi/fieldpulse-api.json" | ”invalid URL” |
Added api.mdx.server + api.mdx.auth | ”invalid URL” |
Removed api.mdx.server + api.mdx.auth (per your help center) | “invalid URL” |
Set proxy: false | Error changed to “unable to complete request” (CORS — expected, confirms URL is valid) |
proxy: false test is particularly telling — it proves the URL construction is correct (the browser tried to reach the API directly and hit CORS, not an invalid URL).
Our API URL
Our API is hosted on AWS API Gateway:us-east-2. The /stage path segment is the API Gateway stage name.
Questions for Your Engineering Team
-
Does the Mintlify proxy have URL validation rules that reject certain URL patterns? Specifically, does it reject AWS API Gateway URLs (
*.execute-api.*.amazonaws.com)? -
Can you check the proxy-side logs for our subdomain (
fieldpulse)? The request to/_mintlify/api/requestreturned{"error":true,"errorMessage":"invalid URL"}— what validation step produced this error? -
Is there a known issue with the proxy and certain URL formats? The URL passes JavaScript’s
new URL()validation and works via curl.
Repository & Resources
- Repo: https://github.com/fp-evan/fieldpulse-docs
- OpenAPI spec: https://github.com/fp-evan/fieldpulse-docs/blob/main/openapi/fieldpulse-api.json
- Live site: https://fieldpulse.mintlify.app
- Test page: https://fieldpulse.mintlify.app/api-reference/users/retrieve-users-list?playground=open

