Pipes
2024.40 Pipes
2024.40 Pipes
  • Introduction
  • Configuration
  • Valves
    • API
      • HTTP Response Format Valve
    • Debug
      • Dump Request
      • Dump Session
      • Dump State
      • Wait
    • EntraID
      • Create User
      • Get User
      • List Users
      • Add User Groups
    • Flow
      • Flow Fail
      • Flow State Add
      • Assert Value
      • Pipe Exec
      • Pipe Call
    • Item
      • Item Create
      • Item Merge
      • Item Remove
      • Items Remove
      • Item Property Add
      • Item Property Split
      • Item Property Rename
      • Item Property Token Replace
      • MV Property To Items
      • JSON To Items
      • MV Property Join
    • Freja
    • BankID
      • BidOperation
      • BidToItems
    • DateTime
      • Instant Generator
      • Instant Transformer
    • HTTP
      • GET
      • PUT
      • POST
      • DELETE
    • JWT
      • CreateJwt
      • ParseJwt
    • JSON
      • JsonObjectCreate
    • LDAP
      • LDAP Search
      • LDAP Group Filter
      • LDAP Bind
      • LDAP Add
      • LDAP Delete
      • LDAP Modify
      • LDAP Move
      • DN Parse
    • JDBC Query
    • Cef event
    • Request
      • RequestParameterExist
      • RequestParameterRename
    • Session
      • Session Put
      • Session Create
      • CopyFromSession
    • ScriptEval
    • Codecs
      • Base64 Encode
      • Base64 Decode
    • Tokens
      • Token Authentication
    • PKI
      • X509 Certificate Extractor
      • Passcode Generator
      • X509 Certificate Validator
    • Delivery
      • Clean Mobile Valve
      • SMS Valve
      • Voice Valve
      • SMTP Valve
    • OTP
      • OTP Generation
      • OTP Validation
    • Misc
      • Basic Auth
Powered by GitBook
On this page
  1. Valves
  2. API

HTTP Response Format Valve

Valve used to format HTTP response in Integrity API.

Configuration

Valve name: HTTPFormatForAPI

Name
Description
Default value
Mandatory
Expanded

body

Response body. JSON structure.

{}

headers

Response headers. JSON structure. NOTE: Content-Length and Content-Type are set automatically.

{}

{
    "name": "HTTPFormatForAPI",
    "enabled": true,
    "exec_if_expr": "items[0].status=='complete'",
    "config": {
        "body": {
            "access_token": "{{{item.jwt}}}",
            "refresh_token": "{{{session.id}}}",
            "status": "{{{item.status}}}"
        },
        "headers": {}
    }
}

PreviousAPINextDebug

Last updated 1 year ago