REST APIs
REST mode is an HTTP client. You save requests in collections, keep base URLs and tokens in environments, and send a request to see its response. Every request you send is also recorded in History.
Collections are listed under GROUPS, the same groups you see in Workspace.
Create a collection and a request
- Open REST from the left rail.
- Click New Collection.
- Enter a Name and click Create.
- Click Add request on the collection row.
- Name the request.
You can also press Cmd/Ctrl+T to open an unsaved request tab.
Build and send a request
- Choose the method: GET, POST, PUT, PATCH or DELETE.
- Enter the URL. Write
{{name}}to use an environment variable. - Fill in the tabs under the URL as needed.
- Click Send, or press
Cmd/Ctrl+Enter.
While the request runs, Send changes to Cancel. Press Cmd/Ctrl+S to save the request.
| Tab | Contents |
|---|---|
| Body | JSON, Text, XML, Form URL-Encoded, Multipart Form, Binary or None. Format pretty-prints JSON |
| Headers | Key and value pairs |
| Auth | No Auth, Bearer Token, Basic Auth or API Key. An API key can be sent as a Header or a Query Param |
| Params | Query parameters, kept in step with the URL |
Pasting a cURL command into the URL field fills in the whole request from it.
Read the response
The response panel shows the status, the size and the body.
- Pretty, Raw and Preview switch how the body is shown.
- Headers lists the response headers.
- Search response... finds text in the body. Press Enter for the next match and Shift+Enter for the previous one.
- The copy button copies the response body.
If a request fails with "SSL certificate verification failed", you can turn off SSL Verification under Settings → REST. Do this only for internal or test APIs you trust.
Manage collections and requests
Open the menu on a row in the sidebar:
- Collection: Rename, Add Request, Export, Share…, Delete. Deleting a collection deletes its requests.
- Request: Copy as cURL, Rename, Duplicate, Delete. Drag a request to reorder it.
Collections that someone shared with you appear under Shared with me. They are read-only.
Environments
An environment is a named set of variables, such as a base URL and a token for staging. A request that uses {{name}} takes the value from the active environment.
- Click the environment name in the top bar.
- Choose Manage environments….
- Click + New Environment.
- Set the Name and Color, then add Variables.
- Click Set as Default if this should be the default environment.
To switch environment, click the environment name in the top bar and pick another one.
A single request can use a different environment from the rest. Click the environment button next to Send and pick one, or pick Use Global to go back.
Hover over a variable in the URL to see its value. Click it to change the value in the active environment.
Import and export
Click Import / Export at the top of the REST sidebar.
On the Import tab:
- Leave Format on Auto-detect, or choose Clauge JSON, Postman Collection or cURL Command.
- Click Choose File, or paste the content into the box.
- Confirm the import.
On the Export tab:
- Choose a Collection, or All Collections.
- Choose the Format: Clauge JSON or cURL (.sh). The cURL format writes each request as a cURL command in a shell script and is available for a single collection only.
- Confirm the export.
AI Assistant
Press Cmd/Ctrl+L to open the AI Assistant. It can draft a request, apply it to the open tab and run requests for you. It asks before running each request unless you turn on auto-run in the panel header.
The assistant uses the AI provider your organization set up. Its status is shown under Settings → AI.
Settings
Settings → REST has the Request Settings card. These defaults apply to every request you send:
- Request Timeout (ms)
- Follow Redirects
- SSL Verification
- Max Response Size (MB)
Organization collections
A collection with the Org badge is provided by your organization.
- You can open its requests and click Send.
- Body, Headers, Auth and Params are read-only. The editor shows a Read-only label.
- Changes to the collection are made by an admin in the Organization Console.
You can file your own collection in an organization group only if your organization allows it. If your organization turns REST off for a group, that group's collections are read-only and show "REST is turned off for this group by your organization". If REST is off for all your groups, it is not on the rail.
See Resources & Access for how organization collections reach you.