---
title: "Create an agent credential"
description: ""
canonical: "https://pgbeam.com/docs/api/agents/createAgentCredential"
last-updated: "2026-09-14T19:37:21.000Z"
---

# Create an agent credential

> 

URL: https://pgbeam.com/docs/api/agents/createAgentCredential

Issues a scoped Postgres login and hosted MCP token for an AI agent. The connection string and MCP token are returned once and cannot be retrieved again.