Regenerate API Key
POST
/api/public/users/api-key/regenerate
Note: The key that authorized this request stops working as soon as the request succeeds. Other active keys on the same account stop working too. The new key is returned once in this response. Issue a new API key for the account that owns the key used on this request.
Regenerate API Key
const url = 'https://backend.podscribe.ai/api/public/users/api-key/regenerate';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}import requests
url = "https://backend.podscribe.ai/api/public/users/api-key/regenerate"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.json())curl --request POST \ --url https://backend.podscribe.ai/api/public/users/api-key/regenerate \ --header 'Authorization: Bearer <token>'Response Body
Section titled “Response Body”The previous key is revoked and a new key is returned.
Media typeapplication/json
apiKey
required
The new API key. Store it now. It is not returned again.
string
Response example
{ "apiKey": "example"}