Ask AI
HomeIntegration Guides Custom Actions: Essential cURL Requests for Customer Support [Part 2] 

Custom Actions: Essential cURL Requests for Customer Support [Part 2] 

21-30: Intercom

Create a User

curl https://api.intercom.io/users \
  -X POST -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Accept: application/json" -H "Content-Type: application/json" \
  -d '{"email": "test@example.com", "name": "Test User"}'

List Users

curl https://api.intercom.io/users \
  -X GET -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Accept: application/json"

View a User

curl https://api.intercom.io/users/{user_id} \
  -X GET -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Accept: application/json"

Update a User

curl https://api.intercom.io/users/{user_id} \
  -X PUT -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Accept: application/json" -H "Content-Type: application/json" \
  -d '{"name": "Updated Name"}'

Delete a User

curl https://api.intercom.io/users/{user_id} \
  -X DELETE -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Accept: application/json"

Create a Conversation

curl https://api.intercom.io/messages \
  -X POST -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Accept: application/json" -H "Content-Type: application/json" \
  -d '{
    "message_type": "inapp",
    "body": "Hello, how can I help you?",
    "from": {
      "type": "user",
      "id": "user_id"
    }
  }'

List Conversations

curl https://api.intercom.io/conversations \
  -X GET -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Accept: application/json"

View a Conversation

curl https://api.intercom.io/conversations/{conversation_id} \
  -X GET -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Accept: application/json"

Reply to a Conversation

curl https://api.intercom.io/conversations/{conversation_id}/reply \
  -X POST -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Accept: application/json" -H "Content-Type: application/json" \
  -d '{
    "type": "user",
    "message_type": "comment",
    "body": "Thank you for reaching out!"
  }'

Close a Conversation

curl https://api.intercom.io/conversations/{conversation_id} \
  -X PUT -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Accept: application/json" -H "Content-Type: application/json" \
  -d '{"state": "closed"}'

61-70: Twilio

Send an SMS

curl -X POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Messages.json \
  --data-urlencode "To=+1234567890" \
  --data-urlencode "From=+0987654321" \
  --data-urlencode "Body=Hello, this is a test message" \
  -u {AccountSid}:{AuthToken}

List Messages

curl -G https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Messages.json \
  -u {AccountSid}:{AuthToken}

Copy

View a Message

curl https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}.json \
  -u {AccountSid}:{AuthToken}

Copy

Delete a Message

curl -X DELETE https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}.json \
  -u {AccountSid}:{AuthToken}

Create a Call

curl -X POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Calls.json \
  --data-urlencode "Url=http://demo.twilio.com/docs/voice.xml" \
  --data-urlencode "To=+1234567890" \
  --data-urlencode "From=+0987654321" \
  -u {AccountSid}:{AuthToken}

List Calls

curl -G https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Calls.json \
  -u {AccountSid}:{AuthToken}

View a Call

curl https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}.json \
  -u {AccountSid}:{AuthToken}

Delete a Call

curl -X DELETE https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}.json \
  -u {AccountSid}:{AuthToken}

Create a Conference

curl -X POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Conferences.json \
  --data-urlencode "FriendlyName=MyConference" \
  -u {AccountSid}:{AuthToken}

List Conferences

curl -G https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Conferences.json \
  -u {AccountSid}:{AuthToken}

71-80: Drift

Create a Contact

curl -X POST https://driftapi.com/contacts \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "email": "test@example.com",
    "name": "Test User"
  }'

List Contacts

curl -X GET https://driftapi.com/contacts \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"

View a Contact

curl -X GET https://

### 81-90: Drift (continued)
#### View a Contact
```sh
curl -X GET https://driftapi.com/contacts/{contact_id} \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"

Update a Contact

curl -X PATCH https://driftapi.com/contacts/{contact_id} \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Updated User"
  }'

Delete a Contact

curl -X DELETE https://driftapi.com/contacts/{contact_id} \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"

Create a Conversation

curl -X POST https://driftapi.com/conversations \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "body": "Hello, how can I help you?",
    "userId": "user_id"
  }'

List Conversations

curl -X GET https://driftapi.com/conversations \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"

View a Conversation

curl -X GET https://driftapi.com/conversations/{conversation_id} \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"

Send a Message

curl -X POST https://driftapi.com/conversations/{conversation_id}/messages \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "body": "Thank you for reaching out!"
  }'

Close a Conversation

curl -X PATCH https://driftapi.com/conversations/{conversation_id} \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"status": "closed"}'

91-100: Help Scout

Create a Customer

curl -X POST https://api.helpscout.net/v2/customers \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "firstName": "John",
    "lastName": "Doe",
    "emails": [
      {
        "type": "work",
        "value": "john.doe@example.com"
      }
    ]
  }'

List Customers

curl -X GET https://api.helpscout.net/v2/customers \
  -H "Authorization: Bearer YOUR_API_KEY"

View a Customer

curl -X GET https://api.helpscout.net/v2/customers/{customer_id} \
  -H "Authorization: Bearer YOUR_API_KEY"

Update a Customer

curl -X PATCH https://api.helpscout.net/v2/customers/{customer_id} \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "firstName": "Updated Name"
  }'

Delete a Customer

curl -X DELETE https://api.helpscout.net/v2/customers/{customer_id} \
  -H "Authorization: Bearer YOUR_API_KEY"

Create a Ticket

curl -X POST https://api.helpscout.net/v2/conversations \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "subject": "Support Request",
    "customer": {
      "id": "{customer_id}"
    },
    "mailboxId": "{mailbox_id}",
    "type": "email",
    "status": "active",
    "threads": [
      {
        "type": "customer",
        "text": "I need help with my order."
      }
    ]
  }'

List Tickets

curl -X GET https://api.helpscout.net/v2/conversations \
  -H "Authorization: Bearer YOUR_API_KEY"

View a Ticket

curl -X GET https://api.helpscout.net/v2/conversations/{ticket_id} \
  -H "Authorization: Bearer YOUR_API_KEY"

Update a Ticket

curl -X PATCH https://api.helpscout.net/v2/conversations/{ticket_id} \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"status": "closed"}'

Delete a Ticket

curl -X DELETE https://api.helpscout.net/v2/conversations/{ticket_id} \
  -H "Authorization: Bearer YOUR_API_KEY"
Copyright © 2025 Bot9. All rights reserved.