Agent
Agent-authenticated endpoints
Creates vended roles on-behalf-of a user across the requested platforms. Roles are provisioned asynchronously and torn down when the TTL expires.
Username of the user to vend roles on behalf of
Identity provider to disambiguate the user with, when the username matches more than one identity
How long the vended roles remain valid, in milliseconds. Between 1m and 24h. Defaults to 1h
3600000Identifier of the vending request, used to fetch or tear down the roles
When the roles were requested, as an ISO 8601 timestamp
When the roles are torn down, as an ISO 8601 timestamp
Error
POST /agents/roles HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 115
{
"username": "text",
"iamId": "text",
"ttl": 3600000,
"platforms": [
{
"technology": "Snowflake",
"connectionKeys": [
"text"
]
}
]
}{
"requestId": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2026-01-01T00:00:00.000Z",
"expiresAt": "2026-01-01T00:00:00.000Z",
"roles": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"technology": "Snowflake",
"connectionKey": "text",
"status": "CREATING",
"metadata": {
"roleName": "text"
}
}
]
}Returns the roles vended for a request, including their current provisioning status.
Identifier of the vending request, as returned when the roles were created
Identifier of the vending request, used to fetch or tear down the roles
When the roles were requested, as an ISO 8601 timestamp
When the roles are torn down, as an ISO 8601 timestamp
Error
GET /agents/roles/{id} HTTP/1.1
Accept: */*
{
"requestId": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2026-01-01T00:00:00.000Z",
"expiresAt": "2026-01-01T00:00:00.000Z",
"roles": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"technology": "Snowflake",
"connectionKey": "text",
"status": "CREATING",
"metadata": {
"roleName": "text"
}
}
]
}Initiates teardown of the roles vended for a request, ahead of their TTL. Teardown proceeds asynchronously.
Identifier of the vending request, as returned when the roles were created
No content
Error
DELETE /agents/roles/{id} HTTP/1.1
Accept: */*
No content
Last updated
Was this helpful?

