PricingBlog

API Call

  • adriyawan-1213816112119029850

    yirda

    2 years ago

    How can I call an API with username:password authentication? I can't see the option in toddle
    1213816112509231104-image.png
  • adriyawan-1213827534815494225

    yirda

    2 years ago

    everything is set now, but it return like this
    1213827534563577876-image.png
  • Tod-1213827537654915113

    Tod

    2 years ago

    Great energy @yirda! Your continuous contribution to the toddle Community just made you advance to Community Level 1!
  • lucasg-1214041100726042664

    Lucas G

    2 years ago

    For a basic auth, you set it up through the header
  • Authorization: Basic userid:password
  • 1214041330779693116-image.png
  • I think that should work
  • lucasg-1214042713519947817

    Lucas G

    2 years ago

    But the info likely needs to be encoded, check your API
  • lucasg-1214043283509092362

    Lucas G

    2 years ago

    You can use the formula editor to format the info accordingly. A concat node with Basic and base64-encoded strings for the other info, if it is OpenAPI format