> For the complete documentation index, see [llms.txt](https://docs.cloudeka.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cloudeka.ai/cloudeka-api/cloudeka-backend/role.md).

# Role

This API is used to get role

```json
{"openapi":"3.1.1","info":{"title":"Cloudeka AI - API Documentation","version":"1.0.0"},"tags":[{"name":"Cloudeka Backend","description":"API endpoints for Cloudeka Backend (base: /core)"}],"servers":[{"url":"https://ai.cloudeka.id/"}],"paths":{"/core/user/role":{"get":{"description":"This API is used to get role","tags":["Cloudeka Backend","User"],"summary":"Role","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/ai_backend__handler.SuccessRespond"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ai_backend__user.Role"}}}}]}}}}}}}},"components":{"schemas":{"ai_backend__handler.SuccessRespond":{"type":"object","properties":{"code":{"type":"integer"},"data":{},"message":{"type":"string"}}},"ai_backend__user.Role":{"type":"object","properties":{"created_at":{"type":"string"},"deleted_at":{"$ref":"#/components/schemas/ai_backend__gorm.DeletedAt"},"id":{"type":"integer"},"name":{"type":"string"},"updated_at":{"type":"string"}}},"ai_backend__gorm.DeletedAt":{"type":"object","properties":{"time":{"type":"string"},"valid":{"description":"Valid is true if Time is not NULL","type":"boolean"}}}}}}
```
