It's possible to create an agent in Freshdesk using a custom action in a Torii workflow.
Requirements
- Create a Freshdesk API key: https://support.freshdesk.com/support/solutions/articles/215517-how-to-find-your-api-key
Custom Action Configuration
Method: POST
URL: https://{domain}.freshdesk.com/api/v2/agents
Headers
Parameter | Variable Mapping |
---|---|
Content-Type | application/json |
Accept | */* |
Authorization | Basic {Base 64 encoded 'APIKey:X'} |
Body
{
"email":"user@example.com",
"name":"John Doe",
"ticket_scope": 1
}
Notes
Available ticket scopes:
1 -> Global Access, 2 -> Group Access, 3 -> Restricted Access
The value for the Basic header must be encoded in Base 64 before being stored in the Secrets Vault.