Tools: How auth token is passed to server URL?
# support
d
I am trying to use a custom server URL in a tool where I want to know how secret token is passed with the server URL.
v
@Dev Khant (Mem0) To use a custom server URL with a secret token, you typically need to pass the secret token as part of the HTTP headers or as a query parameter, depending on the API's design. If the secret token is meant to be passed in the header, you would include it as an 'Authorization' header with the appropriate token type, such as Bearer, followed by the token value. For example, if you're making an HTTP request, it might look something like this:
Copy code
http
GET /your-endpoint HTTP/1.1
Host: your.customserver.com
Authorization: Bearer your_secret_token_here
If you need to pass the secret token as a query parameter, it would be appended to the server URL like so:
Copy code
https://your.customserver.com/your-endpoint?token=your_secret_token_here
Please ensure that you are following the best practices and the API documentation for the tool you are using, as sending secret tokens can pose a security risk if not handled correctly. If you need further assistance with a specific tool or API, please provide more details or ask support for more info on this.
You can continue this conversation by mentioning me in the message.
Got it. Tagging @User for additional help.
s
you have to first clcik on server url then server url secret input will be visible and it will be sent inside the headers.
d
Well when I try to enter the secret key it's not allowing me to enter the text in it
And is it passed in Authorization header?
s
no it is passed as secret header
can you sahre a loom video for it.
m
@Shubham Bajaj is it possible to add a auth to custom llm endpoint?
k
Yes, Vapi supports OAuth 2.0 and JWT.
17 Views