Vault
Issue Ephemeral Credential
Issue an ephemeral, time-bound access credential for an agent. The credential contains the necessary permissions and can be used to access external services.
post/vault/credentials
Request body
Example request
{
"agent_id": "agent-ebd9cd4a-1234",
"ephemeral_public_key": "AAAAC3NzaC1lZDI1NTE5AAAAIEPH...",
"signature": "MEUCIQCxxx...",
"ttl": 3600,
"scope": "read:secrets:prod/app1",
"origin_context": {
"hostname": "agent-host-1",
"ip": "192.168.1.100"
}
}Response
Credential issued successfully
Example response
{
"credential_id": "123e4567-e89b-12d3-a456-426614174000",
"agent_id": "agent-ebd9cd4a-1234",
"ephemeral_public_key": "AAAAC3NzaC1lZDI1NTE5AAAAIEPH...",
"status": "active",
"scope": "read:secrets:prod/app1",
"origin_context": {
"hostname": "agent-host-1",
"ip": "192.168.1.100"
}
}