logo

Get Role List

This interface is used to obtain the role list information under the current company

Request Method

GET /agent_roles

Request Parameters

None

Response Data

Attribute NameTypeDescription
codeIntegerExecution result code, 1000 means success
agent_rolesArraySee details below

Structure of agent_roles

Parameter NameTypeDescription
idIntegerRole ID
nameStringRole name
descriptionStringRole description

Example

Request

curl https://demo.udesk.cn/open_api_v1/agent_roles?email=admin@udesk.cn×tamp=1494474404&sign=6892f1b794071c260e1b1eac15df588fc919c9e86eb742affaa742ad6c03cb52&nonce=2d931510-d99f-494a-8c67-87feb05e1594&sign_version=v2 \
-X GET \
-H 'content-type: appliacation/json' \

Response

{
"code": 1000,
"agent_roles": [
{"id": 1, "name": "Role 1", "description": ""},
{"id": 2, "name": "Role 2", "description": ""},
{"id": 3, "name": "Role 3", "description": ""}
]