id: api-craftmypdf

info:
  name: CraftMyPDF API Test
  author: daffainfo
  severity: info
  description: Generate PDF documents from templates with a drop-and-drop editor and a simple API
  reference:
    - https://pdflayer.com/documentation
    - https://github.com/daffainfo/all-about-apikey/tree/main/craftmypdf
  metadata:
    max-request: 1
  tags: token-spray,craftmypdf

self-contained: true

http:
  - raw:
      - |
        GET https://api.craftmypdf.com/v1/list-templates?limit=300&offset=0 HTTP/1.1
        Host: api.craftmypdf.com
        Content-Type: application/json
        X-API-KEY: {{token}}

    matchers:
      - type: word
        part: body
        words:
          - '"template_id":'
          - '"name":'
        condition: and
# digest: 4a0a00473045022100faefff51ce7ea30b00a9f8e0751e3b0349590b931a7fbe4af5f532e8e91f19ed02201c3fe36b9d0771252a21ee2748913610dda4392f51a9c37fd6cea784db5b2dda:922c64590222798bb761d5b6d8e72950