id: api-airtable

info:
  name: Airtable API Test
  author: daffainfo
  severity: info
  description: Integrate with Airtable
  reference:
    - https://airtable.com/api
    - https://github.com/daffainfo/all-about-apikey/tree/main/airtable
  metadata:
    max-request: 1
  tags: token-spray,airtable

self-contained: true

http:
  - raw:
      - |
        GET https://api.airtable.com/v0/meta/bases HTTP/1.1
        Host: api.airtable.com
        Authorization: Bearer {{token}}

    matchers:
      - type: word
        part: body
        words:
          - '"bases"'
          - '"id"'
          - '"name"'
        condition: and
# digest: 4b0a00483046022100b5da9f668e945b465ae5c0ed4af5cb6e7dc10c73806c7186f2258cbb0995dd48022100f124baf1f27668597c1199f34d4ee170eedd761c2d2f3443960e8679d111d056:922c64590222798bb761d5b6d8e72950