{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreidggi6ckso7croq352qbujr6mqr64iqja7u36z4j3p33dzyi5u3fu",
"uri": "at://did:plc:lk3jfj3zq4k4wxnk474axylu/app.bsky.feed.post/3mkoszfvhex22"
},
"path": "/t/persistent-404-not-found-for-v1-organization-admin-api-keys/1379606#post_4",
"publishedAt": "2026-04-30T03:47:25.000Z",
"site": "https://community.openai.com",
"textContent": "I get a 500 error.\n\nRepro in Python (warning: prints the environment variable admin API key for confirmation):\n\n\n import os\n import httpx\n\n url = \"https://api.openai.com/v1/organization/admin_api_keys\"\n\n headers = {\n \"Authorization\": f\"Bearer {os.environ['OPENAI_ADMIN_KEY']}\",\n }\n\n print(headers)\n\n payload = {\n \"name\": \"testkey\",\n }\n\n response = httpx.post(url, headers=headers, json=payload)\n\n print(response.status_code)\n print(response.text)\n print(\"request-id:\", response.headers.get(\"x-request-id\"))\n\n\n### Result\n\n\n 500\n {\n \"error\": {\n \"message\": \"The server had an error while processing your request. Sorry about that!\",\n \"type\": \"server_error\",\n \"param\": null,\n \"code\": null\n }\n }\n request-id: ec0e3b9e-3f16-4155-b2de-16840421ea25\n request-id: 82de595d-beba-4881-b6bb-8bab5522490c\n\n\nIf not sending “name”, you get a 400 error about the missing parameter as body message, so it is alive.\n\nAdmin keys making admin keys does seem a strange delegation, though. Perhaps this is reserved for enterprise partners with another superuser? Audit logging might be another dependency.",
"title": "Persistent 404 Not Found for v1/organization/admin_api_keys"
}