Infisical home page
Search or ask...
Log In
Start for Free
Start for Free
Search...
Navigation
Project Roles
Get By Slug
Documentation
Integrations
CLI
API Reference
SDKs
Changelog
Overview
Introduction
Authentication
Examples
Endpoints
Identities
Token Auth
Universal Auth
GCP Auth
AWS Auth
Azure Auth
Kubernetes Auth
OIDC Auth
JWT Auth
Groups
Organizations
Projects
Project Users
Project Groups
Project Identities
Project Roles
POST
Create
PATCH
Update
DEL
Delete
GET
Get By Slug
GET
List
Project Templates
Environments
Folders
Secret Tags
Secrets
Dynamic Secrets
Secret Imports
Identity Specific Privilege
App Connections
Secret Syncs
Integrations
Service Tokens
Audit Logs
Infisical PKI
Certificate Authorities
Certificates
Certificate Templates
Certificate Collections
PKI Alerting
Infisical SSH
Certificates
Certificate Authorities
Certificate Templates
Infisical KMS
Keys
Project Roles
Get By Slug
GET
/
api
/
v1
/
workspace
/
{projectSlug}
/
roles
/
slug
/
{slug}
Try it
Path Parameters
projectSlug
string
required
The slug of the project.
slug
string
required
The slug of the role to get details.
Response
200 - application/json
role
object
required
Show child attributes
role.
createdAt
string
required
role.
id
string
required
role.
name
string
required
role.
permissions
object[]
required
Show child attributes
role.permissions.
action
string
string[]
required
Minimum length:
1
role.permissions.
conditions
any
role.permissions.
inverted
boolean
role.permissions.
subject
string
string[]
Minimum length:
1
role.
projectId
string
required
role.
slug
string
required
role.
updatedAt
string
required
role.
description
string | null
Delete
List