Connect via AI
Any AI agent can connect to the API itself: it just needs the specification address or MCP server and your key. Below are what each form provides and ready instructions for ChatGPT, Claude, and code editors.
What Each Form Provides
| Address | What is this | Where to connect |
|---|---|---|
/llms.txt |
Brief documentation index for models (in the address prefix language); full text in `\/llms-full.txt`. | Any agent: provide the address in the request. |
/openapi.json |
Full OpenAPI 3 specification in JSON, each operation has an `operationId`. | Client generators, Postman, agents loading the specification. |
/openapi-lite.json |
Compressed specification: only key operations and short descriptions. | ChatGPT Custom GPT (Actions) and other tools with size limits. |
/ai/tools.json |
Function definitions in OpenAI function calling format. | Your code with OpenAI and compatible models. |
/ai/tools.anthropic.json |
Tool definitions in Claude tools format. | Your code with Claude API. |
POST /mcp |
MCP server (Streamable HTTP, JSON-RPC 2.0): the agent sees tools itself and calls them with your key. | Claude, Claude Code, Cursor, VS Code and other MCP clients. |
Universal prompt
Copy the text and paste it into your AI agent. Do *not* insert the key directly into the chat: store it in the environment variable SHIPPICKUP_API_KEY.
Connect the ShipPickup delivery service API.
Specification: https://api.shippickup.com/openapi.json (short version: https://api.shippickup.com/openapi-lite.json, model description: https://api.shippickup.com/llms.txt).
MCP server: https://api.shippickup.com/mcp (Authorization header: Bearer).
The API key is stored in the environment variable SHIPPICKUP_API_KEY: read it from there and never output it in responses or logs.
Rules: 1) start with the test key sk_test_, test key does not purchase; 2) before buying a label or pickup, show me the carrier, service, and exact price and wait for my explicit consent; 3) use Idempotency-Key for purchases, repeated requests must not buy a second label; 4) money is in whole USD cents; 5) on error, show code and message from the response.ChatGPT
- In ChatGPT, open “My GPTs”, create a GPT, then go to “Settings” → “Actions” → “Create Action”.
- Click “Import by URL” and paste
https://api.shippickup.com/openapi-lite.json. - In “Authentication” select “API Key”, type “Bearer”, and paste the key with limited permissions (profiles below).
- In the GPT instructions, add rules from the universal prompt: test key first and price confirmation before purchase.
Claude
- In Claude, open "Settings" → "Connectors" → "Add Custom Connector" (depending on your plan and version).
- Адрес сервера:
https://api.shippickup.com/mcp. Если клиент спрашивает заголовки, добавьтеAuthorization: Bearer <ключ API>. - For Claude Code, run the command below: it will save the key from your environment variable.
claude mcp add --transport http shippickup https://api.shippickup.com/mcp --header "Authorization: Bearer $SHIPPICKUP_API_KEY"Cursor, VS Code, other editors
Add the server to the MCP editor settings (file mcp.json or MCP section in settings). The key is taken from the environment variable; do not write it to the file.
{
"mcpServers": {
"shippickup": {
"url": "https://api.shippickup.com/mcp",
"headers": {
"Authorization": "Bearer ${env:SHIPPICKUP_API_KEY}"
}
}
}
}What you can ask
- "How much will it cost to send 800 g from New York to Berlin? Show the three cheapest options."
- "Where is parcel 1Z999AA10123456784? Show the latest events."
- "Show shipments for the week and cancel the order I will name" (cancellation requires your confirmation).
Secure settings
- Create a separate key for the agent with minimal permissions and label it (e.g., "AI agent"). Keys cannot be created or revoked via MCP.
- Set a list of allowed IPs for the key if the agent operates from a fixed address.
- Start with a test key
sk_test_…: it calculates rates but cannot make purchases. - Purchasing labels, pickups, and cancellations require
confirm: true. Without it, the tool does nothing and returns a description of the action. Do not allow the agent to setconfirmwithout your response. - The key is passed only in the
Authorizationheader. Keys in the request URL are rejected. - Key limits apply to MCP as well; write actions have their own per-minute limit. All calls are visible in the key log marked with
\/mcp:.
What the agent can do with the account
Tools replicate REST API methods exactly: same key permissions, same checks, same restrictions, and nothing beyond what the client sees in the API.
| Tool | Key Permission | Requires confirmation | Spends money (live key) |
|---|---|---|---|
get_balance |
balance:read |
No | No |
get_shipping_rates |
rates:read |
No | No |
create_shipment |
labels:create |
Yes | Yes |
list_shipments |
labels:read |
No | No |
get_shipment |
labels:read |
No | No |
cancel_shipment |
labels:cancel |
Yes | No |
get_tracking |
tracking:read |
No | No |
get_pickup_slots |
labels:read |
No | No |
schedule_pickup |
labels:create |
Yes | Yes |
cancel_pickup |
labels:cancel |
Yes | No |
If the key lacks the required permission, the tool returns insufficient_scope. Test keys cannot purchase (test_key_cannot_buy). New API methods appear in the list automatically after release.
Ready-made permission profiles for AI agent
| Profile | Key Permission | Purpose |
|---|---|---|
| Read-only | balance:read, rates:read, labels:read, tracking:read | Rates, orders, tracking, and balance. The agent cannot buy or cancel anything. |
| Shipping Operator | balance:read, rates:read, labels:read, tracking:read, labels:create | Read and purchase labels. You handle cancellations. |
| Full without team | balance:read, rates:read, labels:read, tracking:read, labels:create, labels:cancel | Everything above plus order and pickup cancellations. Agent has no team or key management. |