GET
/projects/{project_id}/branches/{branch_id}/roles/{role_name}Retrieve role detailsRetrieves details about the specified role. In Neon, the terms "role" and "user" are synonymous. For related information, see Manage roles.
Parameters
project_idstringpathrequiredThe Neon project ID
branch_idstringpathrequiredThe branch ID
role_namestringpathrequiredThe role name
Responses
objectRoleResponse
roleobjectrequiredShow child attributes
authentication_methodstringAuthentication method configured for this role: `password`, `oauth`, or `no_login`.
branch_idstringrequiredThe ID of the branch this role belongs to.
created_atstring · date-timerequiredA timestamp indicating when the role was created
namestringrequiredPostgres role name within the branch.
passwordstringThe role password
protectedbooleanWhether or not the role is system-protected
updated_atstring · date-timerequiredA timestamp indicating when the role was last updated
{
"role": {
"branch_id": "br-noisy-sunset-458773",
"created_at": "2022-11-23T17:42:25Z",
"name": "casey",
"protected": false,
"updated_at": "2022-11-23T17:42:25Z"
}
}objectGeneralError
codestringrequiredmessagestringrequiredError message
request_idstringUnique identifier for the request, useful for debugging. You can set this value manually by including an `X-Request-ID` header in the request. If not provided, the value will be generated automatically.
{
"code": "",
"message": "string",
"request_id": "string"
}