List Api Tokens Endpoint
curl --request GET \
--url https://api.agentpowers.ai/v1/auth/api-tokensimport requests
url = "https://api.agentpowers.ai/v1/auth/api-tokens"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.agentpowers.ai/v1/auth/api-tokens', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"tokens": [
{
"id": "<string>",
"masked_token": "<string>",
"name": "<string>",
"created_at": "<string>",
"expires_at": "<string>",
"last_used_at": "<string>"
}
]
}auth
List Api Tokens Endpoint
List all active API tokens for the current user (masked).
GET
/
v1
/
auth
/
api-tokens
List Api Tokens Endpoint
curl --request GET \
--url https://api.agentpowers.ai/v1/auth/api-tokensimport requests
url = "https://api.agentpowers.ai/v1/auth/api-tokens"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.agentpowers.ai/v1/auth/api-tokens', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"tokens": [
{
"id": "<string>",
"masked_token": "<string>",
"name": "<string>",
"created_at": "<string>",
"expires_at": "<string>",
"last_used_at": "<string>"
}
]
}Response
200 - application/json
Successful Response
Show child attributes
Show child attributes
Was this page helpful?