id: api-stytch

info:
  name: Stytch API Test
  author: daffainfo
  severity: info
  description: User infrastructure for modern applications
  reference:
    - https://stytch.com/docs/api
    - https://github.com/daffainfo/all-about-apikey/tree/main/stytch
  metadata:
    max-request: 1
  tags: token-spray,stytch

self-contained: true

http:
  - raw:
      - |
        POST https://test.stytch.com/v1/users HTTP/1.1
        Authorization: Basic {{base64(id + ':' + secret)}}
        Host: test.stytch.com
        Content-Type: application/json

        {"email": "test@stytch.com"}

    matchers:
      - type: word
        part: body
        words:
          - '"status_code":'
          - '"request_id":'
          - '"user_id":'
        condition: and
# digest: 4b0a00483046022100aa53d073f658bb842b3ebc9b608e512e9b305f2ec7bb81716602df63541af745022100d817c02506f4f732b18105e52e20362ed36a3e2fccd9c5e8fb3744decdfa8b43:922c64590222798bb761d5b6d8e72950