Zendesk
Zendesk tickets: creating a ticket from a site form, listing and comments.
Connection type: For the app and the agent. Credentials: Zendesk subdomain, Agent email address, API token.
How it works
The app and the agent never see the credentials. They call the Zendesk API through the Bloklo gateway, for example fetch("/gw/<connection id>/users/me"). The gateway appends the path to the address https://{subdomain}.zendesk.com/api/v2 (the fields in braces come from the connection form), adds HTTP Basic authentication with the connection's credentials, and passes the service's response back to the app.
- Reads (GET) go through at once. Writes (POST, PUT, PATCH, DELETE) go through at once only when the connection is set to Always allow; otherwise the gateway returns status 202 with an
approval_idand the write waits for approval in the panel (see Agent permissions). - The Test button sends
GET /users/me.jsonand checks that the service accepted the credentials.
Support API v2 with JSON bodies; a ticket is a ticket object with a required comment. Comments are added by updating the ticket, as there is no separate create endpoint. Cursor pagination: page[size] (usually up to 100) and links.next; offset pagination stops at 10,000 records.
Before you start
- An account with Zendesk with permission to create API keys or tokens.
Where to get the credentials
- In Zendesk, open Admin Center → Apps and integrations → APIs → API configuration and select Allow API token access.
- In APIs → API tokens, click Add API token, enter a description and save.
- Copy the token (shown only once; an administrator creates it).
- In the form, enter the subdomain (the part of the address before
.zendesk.com) and the email of the agent the connection acts as.
Zendesk is retiring API tokens: since 27 Oct 2026 new ones cannot be created, and on 30 Apr 2027 all will stop working. The connection works with a previously created token; OAuth sign-in is in preparation.
Connecting in Bloklo
- Open Connectors in the sidebar and find Zendesk.
- Click Connect and enter a connection name in Details.
- In Configure connection, fill in: Zendesk subdomain, Agent email address, API token.
- Click Connect. Bloklo saves the credentials encrypted and sends a test request; the message shows whether the service responded.
- Attach the connection to a project: Attach to a project… on the connection page, or describe the task in the project chat and pick the connection the agent suggests.
Form fields
- Zendesk subdomain: The part of the address before .zendesk.com.
- Agent email address
- API token
Never paste credentials into the chat with the agent. Enter them only in the connection form.
Example prompts
Prompts to type in the chat of a project with the connection attached:
- “Add a contact form that creates a Zendesk ticket with the customer's details.”
- “Build an open tickets panel with a status filter and a comment box.”
- “Add a page where a customer sees their ticket history.”
API methods
The most commonly used Zendesk API methods. The path goes after /gw/<connection id>; parts in braces, such as {id}, are replaced with values. The gateway treats every request other than GET as a write, including queries sent with POST (such as search or GraphQL), so they need approval unless the connection is set to Always allow. The full list of methods is in the provider's documentation.
| Method | Path | What it does | In the gateway |
|---|---|---|---|
GET | /users/me | Current user | read |
GET | /tickets | List tickets | read |
GET | /tickets/{ticket_id} | Get a ticket | read |
POST | /tickets | Create a ticket | write (approval) |
PUT | /tickets/{ticket_id} | Update a ticket or add a comment | write (approval) |
POST | /tickets/create_many | Create many tickets (up to 100) | write (approval) |
GET | /tickets/{ticket_id}/comments | List ticket comments | read |
GET | /search | Search tickets and users | read |
GET | /users | List users | read |
POST | /users/create_or_update | Create or update a user | write (approval) |
Service limits
Requests per minute by plan: Team 200, Growth and Professional 400, Enterprise 700, Enterprise Plus and the High Volume add-on 2,500. Search: up to 1,000 results per query (100 per page) and 2,500 requests per minute. Ticket update: 30 per 10 minutes per user per ticket. 429 with Retry-After.
Agent actions and permissions
| Action | Type | What the agent uses it for |
|---|---|---|
| Read data | read | Fetches data from the service, such as a list of records, to build and check the app. Examples: current user; list tickets; get a ticket. |
| Write data | write | Requests other than GET: creating, changing or deleting data in the service, and also queries sent with POST (such as search). Examples: create a ticket; update a ticket or add a comment; create many tickets (up to 100). |
By default, reads run without asking and writes need approval in the chat. Change this on the connector page or in Settings → Agent permissions (see Agent permissions).
Troubleshooting
The connection test shows “Invalid key” (HTTP 401)
The service did not recognise the credentials: the value is wrong, expired, revoked or was copied with a space. Create a new key at the provider and enter it on the connection page under Change credentials. Empty fields stay unchanged.
The connection test shows “Invalid key” (HTTP 403)
The credentials are rejected or lack the needed permissions, or the service only accepts requests from selected IP addresses. Check the key, extend its permissions at the provider or add the Bloklo gateway IP address (shown in Settings → Privacy & security) to the allowlist.
The test returns another HTTP code
The Test button sends the service a read request that requires valid credentials. A code other than 401 and 403 usually means a temporary problem at the service or a restriction on the account at the provider; include the error code shown with the result in a problem report.
Limits and security
- One connection can make up to 1,000 requests per minute; the service's own limits also apply.
- Credentials are encrypted and not shown in the browser after saving; only the names of stored fields are visible.
- A published app works for every visitor: protect the data the connection gives access to with sign-in in the app.
Something unclear or out of date? Contact us