Skip to content

Arun Desk API

Desk API

In ARUN Desk we had build support API for the client with the token access.

Create Ticket API

URL: https://api.zanroo.com/v1.0/arun/desk/createTicket
Method: POST

This API is for our partner that want to create the ticket in Desk by API, This API will get messages id that bot send to Desk and make it create the ticket

Request

{
    "channel": "fb",
    "message_id": "m_byE7iKcEvhxatjOoZTB41hAdRFGKrmt-1YCKb-DYh7tBVo05fJcSFI",
    "social_id": "12345"
}

Response

{
    "account_id": "244",
    "data": {   
        "id": "m_byE7iKcEvhxatjOoZTB41hAdRFGKrmt-1YCKb-DYh7tBVo05fJcSFI",
        "is_spam": false,
        "ticket_id": "224_1"
    },
    "type": "create_ticket"
}

Desk Callback API

this 's format request callback to your API after you create ticket, response body your send to desk API and you can set URL callback in ARUN Desk.

Close Ticket

This is call back that's sent from ARUN desk to made API know this ticket have been close.

Request

{
    "account_id": "244",
    "data": {
        "id": "byE7iKcEvhxatjOoZTB41hAdRFGKrmt-1YCKb-DYh7tBVo05fJcSFI",
        "ticket_id": "001_223"
    },
    "type": "close_ticket"
}

Response

{
    "message": "Success"
}

Reply messages

reply callback - ARUN Desk will call your API for reply message after creating the ticket. Also, agent can reply messages in ARUN Desk without this AP. But if you want to handle reply message you can set in ARUN Desk.

Request

{
    "account_id": "244",
    "data": {
        "description": "test reply message",
        "id": "byE7iKcEvhxatjOoZTB41hAdRFGKrmt-1YCKb-DYh7tBVo05fJcSFI",
        "ticket_id": "001_223",
        "user_id": "hFGHfhjgJGHJghjDFGDFGDFGDFGFj-gdfgDFGdf-hhfghfhfgjhs"
    },
    "type": "reply_messages"
}

Response

{
    "message_id": "m_byE7iKcEvhxatjOoZTB41hAdRFGKrmt-1YCKb-DYh7tBVo05fJcSFI"
}