# Bots

> For AI agents: the index of these docs is at https://shippified.net/docs/llms.txt (every page it lists has a Markdown version like this one).

## List bots.

**`GET https://shippified.net/api/bots`** — List bots.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `limit` | query | integer | no |  |
| `offset` | query | integer | no |  |

### Responses

**200** — OK

```json
{}
```

### Code samples

**cURL**

```curl
curl -X GET "https://shippified.net/api/bots"
```

**TypeScript**

```typescript
const res = await fetch('https://shippified.net/api/bots', {
  method: 'GET',
});
const data = await res.json();
```

**Python**

```python
import requests

res = requests.request(
    "GET",
    "https://shippified.net/api/bots",
)
data = res.json()
```

**Go**

```go
package main

import (
	"fmt"
	"io"
	"net/http"
)

func main() {
	req, _ := http.NewRequest("GET", "https://shippified.net/api/bots", nil)
	res, _ := http.DefaultClient.Do(req)
	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)
	fmt.Println(string(body))
}
```

**PHP**

```php
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://shippified.net/api/bots');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
```

**Ruby**

```ruby
require 'net/http'
require 'uri'

uri = URI('https://shippified.net/api/bots')
req = Net::HTTP::Get.new(uri)
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == 'https') do |http|
  http.request(req)
end
puts res.body
```

**Java**

```java
import java.net.URI;
import java.net.http.*;
import java.net.http.HttpRequest.BodyPublishers;

HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://shippified.net/api/bots"))
    .GET()
    .build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
```

## Create a Discord webhook bot.

**`POST https://shippified.net/api/bots`** — Create a Discord webhook bot.

### Request body (`application/json`)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | yes |  |
| `userId` | string | no |  |
| `slug` | string | yes |  |
| `name` | string | yes |  |
| `avatar` | string | no |  |
| `templateId` | string | yes |  |
| `templateHint` | string | no |  |
| `samplePayload` | string | no |  |
| `outputWebhook` | string | no |  |
| `createdAt` | string | yes |  |

```json
{
  "id": "string",
  "userId": "string",
  "slug": "string",
  "name": "string",
  "avatar": "string",
  "templateId": "string",
  "templateHint": "string",
  "samplePayload": "string",
  "outputWebhook": "string",
  "createdAt": "2024-01-01T00:00:00Z"
}
```

### Responses

**201** — Created bot.

```json
{
  "id": "string",
  "userId": "string",
  "slug": "string",
  "name": "string",
  "avatar": "string",
  "templateId": "string",
  "templateHint": "string",
  "samplePayload": "string",
  "outputWebhook": "string",
  "createdAt": "2024-01-01T00:00:00Z"
}
```

### Code samples

**cURL**

```curl
curl -X POST "https://shippified.net/api/bots" \
  -H "Content-Type: application/json" \
  -d '{"id":"string","userId":"string","slug":"string","name":"string","avatar":"string","templateId":"string","templateHint":"string","samplePayload":"string","outputWebhook":"string","createdAt":"2024-01-01T00:00:00Z"}'
```

**TypeScript**

```typescript
const res = await fetch('https://shippified.net/api/bots', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({"id":"string","userId":"string","slug":"string","name":"string","avatar":"string","templateId":"string","templateHint":"string","samplePayload":"string","outputWebhook":"string","createdAt":"2024-01-01T00:00:00Z"}),
});
const data = await res.json();
```

**Python**

```python
import requests

res = requests.request(
    "POST",
    "https://shippified.net/api/bots",
    headers={
    "Content-Type": "application/json",
    },
    json={"id": "string", "userId": "string", "slug": "string", "name": "string", "avatar": "string", "templateId": "string", "templateHint": "string", "samplePayload": "string", "outputWebhook": "string", "createdAt": "2024-01-01T00:00:00Z"},
)
data = res.json()
```

**Go**

```go
package main

import (
	"fmt"
	"io"
	"net/http"
	"strings"
)

func main() {
	req, _ := http.NewRequest("POST", "https://shippified.net/api/bots", strings.NewReader(`{"id":"string","userId":"string","slug":"string","name":"string","avatar":"string","templateId":"string","templateHint":"string","samplePayload":"string","outputWebhook":"string","createdAt":"2024-01-01T00:00:00Z"}`))
	req.Header.Set("Content-Type", "application/json")
	res, _ := http.DefaultClient.Do(req)
	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)
	fmt.Println(string(body))
}
```

**PHP**

```php
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://shippified.net/api/bots');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application/json']);
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"id":"string","userId":"string","slug":"string","name":"string","avatar":"string","templateId":"string","templateHint":"string","samplePayload":"string","outputWebhook":"string","createdAt":"2024-01-01T00:00:00Z"}');
$response = curl_exec($ch);
curl_close($ch);
echo $response;
```

**Ruby**

```ruby
require 'net/http'
require 'uri'

uri = URI('https://shippified.net/api/bots')
req = Net::HTTP::Post.new(uri)
req['Content-Type'] = 'application/json'
req.body = '{"id":"string","userId":"string","slug":"string","name":"string","avatar":"string","templateId":"string","templateHint":"string","samplePayload":"string","outputWebhook":"string","createdAt":"2024-01-01T00:00:00Z"}'
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == 'https') do |http|
  http.request(req)
end
puts res.body
```

**Java**

```java
import java.net.URI;
import java.net.http.*;
import java.net.http.HttpRequest.BodyPublishers;

HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://shippified.net/api/bots"))
    .header("Content-Type", "application/json")
    .method("POST", BodyPublishers.ofString("{\"id\":\"string\",\"userId\":\"string\",\"slug\":\"string\",\"name\":\"string\",\"avatar\":\"string\",\"templateId\":\"string\",\"templateHint\":\"string\",\"samplePayload\":\"string\",\"outputWebhook\":\"string\",\"createdAt\":\"2024-01-01T00:00:00Z\"}"))
    .build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
```

## Get one bot.

**`GET https://shippified.net/api/bots/{id}`** — Get one bot.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes |  |

### Responses

**200** — OK

**404** — Not found.

### Code samples

**cURL**

```curl
curl -X GET "https://shippified.net/api/bots/{id}"
```

**TypeScript**

```typescript
const res = await fetch('https://shippified.net/api/bots/{id}', {
  method: 'GET',
});
const data = await res.json();
```

**Python**

```python
import requests

res = requests.request(
    "GET",
    "https://shippified.net/api/bots/{id}",
)
data = res.json()
```

**Go**

```go
package main

import (
	"fmt"
	"io"
	"net/http"
)

func main() {
	req, _ := http.NewRequest("GET", "https://shippified.net/api/bots/{id}", nil)
	res, _ := http.DefaultClient.Do(req)
	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)
	fmt.Println(string(body))
}
```

**PHP**

```php
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://shippified.net/api/bots/{id}');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
```

**Ruby**

```ruby
require 'net/http'
require 'uri'

uri = URI('https://shippified.net/api/bots/{id}')
req = Net::HTTP::Get.new(uri)
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == 'https') do |http|
  http.request(req)
end
puts res.body
```

**Java**

```java
import java.net.URI;
import java.net.http.*;
import java.net.http.HttpRequest.BodyPublishers;

HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://shippified.net/api/bots/{id}"))
    .GET()
    .build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
```

## Delete bot.

**`DELETE https://shippified.net/api/bots/{id}`** — Delete bot.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes |  |

### Responses

**200** — Deleted.

**404** — Not found.

### Code samples

**cURL**

```curl
curl -X DELETE "https://shippified.net/api/bots/{id}"
```

**TypeScript**

```typescript
const res = await fetch('https://shippified.net/api/bots/{id}', {
  method: 'DELETE',
});
const data = await res.json();
```

**Python**

```python
import requests

res = requests.request(
    "DELETE",
    "https://shippified.net/api/bots/{id}",
)
data = res.json()
```

**Go**

```go
package main

import (
	"fmt"
	"io"
	"net/http"
)

func main() {
	req, _ := http.NewRequest("DELETE", "https://shippified.net/api/bots/{id}", nil)
	res, _ := http.DefaultClient.Do(req)
	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)
	fmt.Println(string(body))
}
```

**PHP**

```php
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://shippified.net/api/bots/{id}');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'DELETE');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
```

**Ruby**

```ruby
require 'net/http'
require 'uri'

uri = URI('https://shippified.net/api/bots/{id}')
req = Net::HTTP::Delete.new(uri)
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == 'https') do |http|
  http.request(req)
end
puts res.body
```

**Java**

```java
import java.net.URI;
import java.net.http.*;
import java.net.http.HttpRequest.BodyPublishers;

HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://shippified.net/api/bots/{id}"))
    .method("DELETE", BodyPublishers.noBody())
    .build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
```

## Update bot.

**`PATCH https://shippified.net/api/bots/{id}`** — Update bot.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes |  |

### Responses

**200** — Updated bot.

**404** — Not found.

### Code samples

**cURL**

```curl
curl -X PATCH "https://shippified.net/api/bots/{id}"
```

**TypeScript**

```typescript
const res = await fetch('https://shippified.net/api/bots/{id}', {
  method: 'PATCH',
});
const data = await res.json();
```

**Python**

```python
import requests

res = requests.request(
    "PATCH",
    "https://shippified.net/api/bots/{id}",
)
data = res.json()
```

**Go**

```go
package main

import (
	"fmt"
	"io"
	"net/http"
)

func main() {
	req, _ := http.NewRequest("PATCH", "https://shippified.net/api/bots/{id}", nil)
	res, _ := http.DefaultClient.Do(req)
	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)
	fmt.Println(string(body))
}
```

**PHP**

```php
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://shippified.net/api/bots/{id}');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'PATCH');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
```

**Ruby**

```ruby
require 'net/http'
require 'uri'

uri = URI('https://shippified.net/api/bots/{id}')
req = Net::HTTP::Patch.new(uri)
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == 'https') do |http|
  http.request(req)
end
puts res.body
```

**Java**

```java
import java.net.URI;
import java.net.http.*;
import java.net.http.HttpRequest.BodyPublishers;

HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://shippified.net/api/bots/{id}"))
    .method("PATCH", BodyPublishers.noBody())
    .build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
```

## Recent payloads this bot received and what happened to each.

**`GET https://shippified.net/api/bots/{id}/logs`** — Recent payloads this bot received and what happened to each.

Newest first. Every post that reached the bot is logged, including ones that were ignored or rejected, so this is where to look when a checkout didn't turn into an order.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes |  |
| `limit` | query | integer | no |  |

### Responses

**200** — OK

```json
{
  "logs": [
    {
      "id": "log_mpvu9uim_k3x9q",
      "userId": "string",
      "channel": "discord",
      "botId": "string",
      "botName": "string",
      "emailSourceId": "string",
      "rawPayload": "string",
      "parser": "string",
      "parsedOrderId": "string",
      "outcome": "created",
      "error": "string",
      "receivedAt": "2024-01-01T00:00:00Z"
    }
  ]
}
```

**401** — Not authenticated.

**404** — Bot not found.

### Code samples

**cURL**

```curl
curl -X GET "https://shippified.net/api/bots/{id}/logs"
```

**TypeScript**

```typescript
const res = await fetch('https://shippified.net/api/bots/{id}/logs', {
  method: 'GET',
});
const data = await res.json();
```

**Python**

```python
import requests

res = requests.request(
    "GET",
    "https://shippified.net/api/bots/{id}/logs",
)
data = res.json()
```

**Go**

```go
package main

import (
	"fmt"
	"io"
	"net/http"
)

func main() {
	req, _ := http.NewRequest("GET", "https://shippified.net/api/bots/{id}/logs", nil)
	res, _ := http.DefaultClient.Do(req)
	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)
	fmt.Println(string(body))
}
```

**PHP**

```php
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://shippified.net/api/bots/{id}/logs');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
```

**Ruby**

```ruby
require 'net/http'
require 'uri'

uri = URI('https://shippified.net/api/bots/{id}/logs')
req = Net::HTTP::Get.new(uri)
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == 'https') do |http|
  http.request(req)
end
puts res.body
```

**Java**

```java
import java.net.URI;
import java.net.http.*;
import java.net.http.HttpRequest.BodyPublishers;

HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://shippified.net/api/bots/{id}/logs"))
    .GET()
    .build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
```

---

## For AI agents

- This page for a human reader: https://shippified.net/docs/ref-bots
- The whole space as one Markdown file: https://shippified.net/docs/llms-full.txt
- Live search + fetch over MCP: https://shippified.net/docs/_api/public/orgs/5b8789b1-481a-41f5-8e5a-5f30d11f5151/spaces/ae0c5af4-cc84-4899-9078-2faf8e7a6fc5/mcp
  - Install (Claude CLI): `claude mcp add api-docs --transport http https://shippified.net/docs/_api/public/orgs/5b8789b1-481a-41f5-8e5a-5f30d11f5151/spaces/ae0c5af4-cc84-4899-9078-2faf8e7a6fc5/mcp`

This Markdown is the same content the page renders — safe to quote and to ground answers in.
