Change token
# support
m
Hello, i created a new token and would like to desactivate the old one, how can i do this? thank you
v
Hi there! 👋 To deactivate your old token, you'll need to use the
/credential
endpoint with the DELETE HTTP method. Here's how:
Copy code
http
DELETE /credential/:id
Authorization: Bearer your-api-token
Replace
:id
with the ID of the old token you want to deactivate, and make sure to include your current valid token in the Authorization header. This will completely remove the old token from the system, preventing any further use. It's a good security practice to remove old tokens when they're no longer needed! Let me know if you need any help with this process! 😊 Sources: - [Discord Message about Credential Endpoint](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1317475563220504596) - [Discord Message about Removing Sensitive Tokens](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1336414771309838448)
m
don't find any api endpoint to do this
ok, i think i found it out, the right one is get https://api.vapi.ai/token to get all tokens, and ''delete https://api.vapi.ai/token/id_token " to delete it, thanks
v
Hey @mmvora, create a new public token and share both your orgId and new public key with me in a DM. I'll replace it with the private key.