{
  "x402Version": 2,
  "id": 35888,
  "slug": "35888",
  "resource": "https://tanod.dev/v1/pdf/attachments",
  "description": "pdfpeek (Tanod) PDF attachments: list, extract or add the files embedded in a PDF.",
  "type": "http",
  "serviceName": "Tanod pdfpeek",
  "iconUrl": "https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1791364949/bazaar-icons/d8143c9bc952f5cd.png",
  "resourceType": "Beauty & Personal Care",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x593857A4a4F619543ea12394137C3004ce841720",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "5000",
      "amountUsd": 0.005,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:137",
      "payTo": "0x593857A4a4F619543ea12394137C3004ce841720",
      "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
      "amount": "5000",
      "amountUsd": 0.005,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "action": {
            "enum": [
              "list",
              "extract",
              "add"
            ],
            "type": "string"
          },
          "active_content_removed": {
            "type": "object"
          },
          "attachment": {
            "properties": {
              "description": {
                "type": "string"
              },
              "filename": {
                "type": "string"
              },
              "mime_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "name": {
                "type": "string"
              },
              "size": {
                "type": [
                  "integer",
                  "null"
                ]
              }
            },
            "required": [
              "name",
              "filename"
            ],
            "type": "object"
          },
          "attachments": {
            "anyOf": [
              {
                "items": {
                  "properties": {
                    "description": {
                      "type": "string"
                    },
                    "filename": {
                      "type": "string"
                    },
                    "mime_type": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "name": {
                      "type": "string"
                    },
                    "size": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "name",
                    "filename"
                  ],
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "integer"
              }
            ]
          },
          "count": {
            "type": "integer"
          },
          "file": {
            "properties": {
              "bytes": {
                "type": "integer"
              },
              "content_type": {
                "type": "string"
              },
              "data_base64": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "pages": {
                "type": "integer"
              }
            },
            "required": [
              "name",
              "content_type",
              "bytes",
              "data_base64"
            ],
            "type": "object"
          },
          "input_bytes": {
            "type": "integer"
          },
          "input_pages": {
            "type": "integer"
          },
          "operation": {
            "type": "string"
          },
          "output_bytes": {
            "type": "integer"
          },
          "truncated": {
            "type": "boolean"
          },
          "untrusted_content": {
            "type": "boolean"
          }
        },
        "required": [
          "operation",
          "action",
          "input_bytes",
          "untrusted_content"
        ],
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "action": "list",
            "url": "https://tanod.dev/samples/attachment-sample.pdf"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "action": "list",
            "attachments": [
              {
                "description": "Sample attachment",
                "filename": "notes.txt",
                "mime_type": "text/plain",
                "name": "notes.txt",
                "size": 40
              }
            ],
            "count": 1,
            "input_bytes": 1480,
            "input_pages": 1,
            "operation": "attachments",
            "truncated": false,
            "untrusted_content": true
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "action": {
                    "default": "list",
                    "description": "list (default): names, sizes and media types; extract: one attachment by `name`, base64; add: attach `file_base64` as `name` (the attachments the PDF has are kept).",
                    "enum": [
                      "list",
                      "extract",
                      "add"
                    ],
                    "type": "string"
                  },
                  "description": {
                    "anyOf": [
                      {
                        "maxLength": 300,
                        "minLength": 1,
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null,
                    "description": "add: a short description stored with the attachment."
                  },
                  "file_base64": {
                    "anyOf": [
                      {
                        "maxLength": 6666684,
                        "minLength": 1,
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null,
                    "description": "add: the file to attach as base64 (at most 5 MB decoded; with an inline PDF the two together at most 10 MB)."
                  },
                  "mime_type": {
                    "anyOf": [
                      {
                        "maxLength": 127,
                        "minLength": 3,
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null,
                    "description": "add: its media type (default: guessed from the name)."
                  },
                  "name": {
                    "anyOf": [
                      {
                        "maxLength": 255,
                        "minLength": 1,
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null,
                    "description": "extract / add: the attachment's name (add: a new one; no / or \\)."
                  },
                  "pdf_base64": {
                    "anyOf": [
                      {
                        "maxLength": 13398872,
                        "minLength": 1,
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null,
                    "description": "The PDF as base64 (at most 10 MB decoded per request); or use url."
                  },
                  "url": {
                    "anyOf": [
                      {
                        "maxLength": 2048,
                        "minLength": 1,
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null,
                    "description": "Public http(s) URL of the PDF (at most 20 MB; private, internal and IP-literal hosts are refused); or use pdf_base64."
                  }
                },
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "action": {
                    "enum": [
                      "list",
                      "extract",
                      "add"
                    ],
                    "type": "string"
                  },
                  "active_content_removed": {
                    "type": "object"
                  },
                  "attachment": {
                    "properties": {
                      "description": {
                        "type": "string"
                      },
                      "filename": {
                        "type": "string"
                      },
                      "mime_type": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "name": {
                        "type": "string"
                      },
                      "size": {
                        "type": [
                          "integer",
                          "null"
                        ]
                      }
                    },
                    "required": [
                      "name",
                      "filename"
                    ],
                    "type": "object"
                  },
                  "attachments": {
                    "anyOf": [
                      {
                        "items": {
                          "properties": {
                            "description": {
                              "type": "string"
                            },
                            "filename": {
                              "type": "string"
                            },
                            "mime_type": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "name": {
                              "type": "string"
                            },
                            "size": {
                              "type": [
                                "integer",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "name",
                            "filename"
                          ],
                          "type": "object"
                        },
                        "type": "array"
                      },
                      {
                        "type": "integer"
                      }
                    ]
                  },
                  "count": {
                    "type": "integer"
                  },
                  "file": {
                    "properties": {
                      "bytes": {
                        "type": "integer"
                      },
                      "content_type": {
                        "type": "string"
                      },
                      "data_base64": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "pages": {
                        "type": "integer"
                      }
                    },
                    "required": [
                      "name",
                      "content_type",
                      "bytes",
                      "data_base64"
                    ],
                    "type": "object"
                  },
                  "input_bytes": {
                    "type": "integer"
                  },
                  "input_pages": {
                    "type": "integer"
                  },
                  "operation": {
                    "type": "string"
                  },
                  "output_bytes": {
                    "type": "integer"
                  },
                  "truncated": {
                    "type": "boolean"
                  },
                  "untrusted_content": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "operation",
                  "action",
                  "input_bytes",
                  "untrusted_content"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    },
    "builder-code": {
      "info": {
        "a": "bc_h7pxv14u"
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "a": {
            "description": "App builder code",
            "pattern": "^[a-z0-9_]{1,32}$",
            "type": "string"
          },
          "s": {
            "description": "Service builder codes",
            "items": {
              "pattern": "^[a-z0-9_]{1,32}$",
              "type": "string"
            },
            "maxItems": 11,
            "type": "array"
          },
          "w": {
            "description": "Wallet builder code",
            "pattern": "^[a-z0-9_]{1,32}$",
            "type": "string"
          }
        },
        "type": "object"
      }
    }
  },
  "tags": [
    "pdfpeek",
    "pdf",
    "pdf-tools",
    "ocr",
    "documents",
    "bazaar",
    "builder-code"
  ],
  "sourceHost": "tanod.dev",
  "lastUpdated": "2026-10-09T05:38:15.841Z",
  "quality": {
    "calls30d": 2,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-09T05:38:15.39Z"
  },
  "metadata": {
    "serviceName": "Tanod pdfpeek",
    "iconUrl": "https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1791364949/bazaar-icons/d8143c9bc952f5cd.png",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "action": "list",
              "url": "https://tanod.dev/samples/attachment-sample.pdf"
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "action": "list",
              "attachments": [
                {
                  "description": "Sample attachment",
                  "filename": "notes.txt",
                  "mime_type": "text/plain",
                  "name": "notes.txt",
                  "size": 40
                }
              ],
              "count": 1,
              "input_bytes": 1480,
              "input_pages": 1,
              "operation": "attachments",
              "truncated": false,
              "untrusted_content": true
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "action": {
                      "default": "list",
                      "description": "list (default): names, sizes and media types; extract: one attachment by `name`, base64; add: attach `file_base64` as `name` (the attachments the PDF has are kept).",
                      "enum": [
                        "list",
                        "extract",
                        "add"
                      ],
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "maxLength": 300,
                          "minLength": 1,
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "default": null,
                      "description": "add: a short description stored with the attachment."
                    },
                    "file_base64": {
                      "anyOf": [
                        {
                          "maxLength": 6666684,
                          "minLength": 1,
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "default": null,
                      "description": "add: the file to attach as base64 (at most 5 MB decoded; with an inline PDF the two together at most 10 MB)."
                    },
                    "mime_type": {
                      "anyOf": [
                        {
                          "maxLength": 127,
                          "minLength": 3,
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "default": null,
                      "description": "add: its media type (default: guessed from the name)."
                    },
                    "name": {
                      "anyOf": [
                        {
                          "maxLength": 255,
                          "minLength": 1,
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "default": null,
                      "description": "extract / add: the attachment's name (add: a new one; no / or \\)."
                    },
                    "pdf_base64": {
                      "anyOf": [
                        {
                          "maxLength": 13398872,
                          "minLength": 1,
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "default": null,
                      "description": "The PDF as base64 (at most 10 MB decoded per request); or use url."
                    },
                    "url": {
                      "anyOf": [
                        {
                          "maxLength": 2048,
                          "minLength": 1,
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "default": null,
                      "description": "Public http(s) URL of the PDF (at most 20 MB; private, internal and IP-literal hosts are refused); or use pdf_base64."
                    }
                  },
                  "type": "object"
                },
                "bodyType": {
                  "enum": [
                    "json",
                    "form-data",
                    "text"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "properties": {
                    "action": {
                      "enum": [
                        "list",
                        "extract",
                        "add"
                      ],
                      "type": "string"
                    },
                    "active_content_removed": {
                      "type": "object"
                    },
                    "attachment": {
                      "properties": {
                        "description": {
                          "type": "string"
                        },
                        "filename": {
                          "type": "string"
                        },
                        "mime_type": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "name": {
                          "type": "string"
                        },
                        "size": {
                          "type": [
                            "integer",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "name",
                        "filename"
                      ],
                      "type": "object"
                    },
                    "attachments": {
                      "anyOf": [
                        {
                          "items": {
                            "properties": {
                              "description": {
                                "type": "string"
                              },
                              "filename": {
                                "type": "string"
                              },
                              "mime_type": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "name": {
                                "type": "string"
                              },
                              "size": {
                                "type": [
                                  "integer",
                                  "null"
                                ]
                              }
                            },
                            "required": [
                              "name",
                              "filename"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        },
                        {
                          "type": "integer"
                        }
                      ]
                    },
                    "count": {
                      "type": "integer"
                    },
                    "file": {
                      "properties": {
                        "bytes": {
                          "type": "integer"
                        },
                        "content_type": {
                          "type": "string"
                        },
                        "data_base64": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "pages": {
                          "type": "integer"
                        }
                      },
                      "required": [
                        "name",
                        "content_type",
                        "bytes",
                        "data_base64"
                      ],
                      "type": "object"
                    },
                    "input_bytes": {
                      "type": "integer"
                    },
                    "input_pages": {
                      "type": "integer"
                    },
                    "operation": {
                      "type": "string"
                    },
                    "output_bytes": {
                      "type": "integer"
                    },
                    "truncated": {
                      "type": "boolean"
                    },
                    "untrusted_content": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "operation",
                    "action",
                    "input_bytes",
                    "untrusted_content"
                  ],
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      },
      "builder-code": {
        "info": {
          "a": "bc_h7pxv14u"
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "additionalProperties": false,
          "properties": {
            "a": {
              "description": "App builder code",
              "pattern": "^[a-z0-9_]{1,32}$",
              "type": "string"
            },
            "s": {
              "description": "Service builder codes",
              "items": {
                "pattern": "^[a-z0-9_]{1,32}$",
                "type": "string"
              },
              "maxItems": 11,
              "type": "array"
            },
            "w": {
              "description": "Wallet builder code",
              "pattern": "^[a-z0-9_]{1,32}$",
              "type": "string"
            }
          },
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "tanod.dev",
    "manifest_name": "tanod.dev",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {
      "action": "list",
      "active_content_removed": {},
      "attachment": {
        "description": "string",
        "filename": "string",
        "mime_type": "string",
        "name": "string",
        "size": 0
      },
      "attachments": null,
      "count": 0,
      "file": {
        "bytes": 0,
        "content_type": "string",
        "data_base64": "string",
        "name": "string",
        "pages": 0
      },
      "input_bytes": 0,
      "input_pages": 0,
      "operation": "string",
      "output_bytes": 0,
      "truncated": true,
      "untrusted_content": true
    },
    "type": "string"
  }
}