outbound
# support
a
Were there any recently changed teh tools function now asking for authentication tokens. I don't know what that is. Before I could just add a webhook. I've attached some before and after photos. I don't understand how to use this new tools function now and there seems to be no data available on it. What am I supposed to do to create tools for make now? First image is before, second is after. https://cdn.discordapp.com/attachments/1347376364470403103/1347376364659015814/Screenshot_2025-03-06_at_8.10.24_PM.png?ex=67cb9986&is=67ca4806&hm=583bd65ae02e73894b8b94cde65ef0cdece7a6ce4bf50606a122c9de3ccc5062& https://cdn.discordapp.com/attachments/1347376364470403103/1347376365057478787/Screenshot_2025-03-06_at_8.10.54_PM.png?ex=67cb9986&is=67ca4806&hm=cb74a7d69b531f9d50d48f27f7c3e5062b70fc37109c0dcb476346aeed24216b&
v
It looks like there have been some recent changes to the tools function in Vapi that now require authentication tokens for creating and managing tools, including webhooks. This is a shift from the previous method where you could simply add a webhook without needing any authentication. ### What is an Authentication Token? An authentication token is a secure way to verify your identity when making API requests. In Vapi, you can use either OAuth2 tokens or JWT (JSON Web Tokens) for this purpose. These tokens ensure that only authorized users can access certain functionalities. ### How to Create Tools with the New Functionality To create tools using the new tools function, follow these steps: 1. **Generate an Authentication Token**: - If you're using JWT, you'll need to define a payload, get a private key, and generate the token. You can find detailed instructions on how to do this in the [JWT Authentication Guide](https://docs.vapi.ai/customization/jwt-authentication). 2. **Update Your Tool Configuration**: - In the new interface, you'll see a field for the "Authentication Token." You need to enter the token you generated here. - Make sure to fill in the other required fields, such as the Tool Name and Webhook URL. 3. **Send the API Request**: - When you make an API request to create or update a tool, include the token in the Authorization header formatted as
Bearer <your-token>
. 4. **Test Your Tool**: - After setting everything up, test your tool to ensure it works as expected. ### Example of a Tool Configuration Here’s a basic example of how your tool configuration might look:
Copy code
json
{
  "tool_name": "Reschedule",
  "description": "When the user wants to reschedule an appointment.",
  "webhook_url": "https://hook.make/...",
  "authentication_token": "your-authentication-token",
  "metadata": {
    "scenario_id": "your-scenario-id"
  }
}
### Additional Resources
- For more details on the changes and how to implement them, check out the [Vapi Changelog](https://docs.vapi.ai/changelog/2024/12/6) and the [API Reference](https://docs.vapi.ai/api-reference/tools/create-tool). If you have any more questions or need further assistance, feel free to ask! 😊 Sources: - [JWT Authentication Guide](https://docs.vapi.ai/customization/jwt-authentication) - [Vapi Changelog](https://docs.vapi.ai/changelog/2024/12/6) - [API Reference for Creating Tools](https://docs.vapi.ai/api-reference/tools/create-tool)
a
So you all made it so that before all I had to do was paste a webhook, and now I have to go through a learning curve of understanding how to create authentication tokens using complicated json coding. What happened to no code, and user access... Is there a way to revert it back
s
@Afega
Auth Token
is nothing just an another name for server secret token. so, there is no learning cuve involed.
@Afega let me know if you require further help or clarifications, happy to help!!
2 Views