Register Client
curl --request POST \
--url https://api.agentpowers.ai/v1/oauth/register \
--header 'Content-Type: application/json' \
--data '
{
"client_name": "<string>",
"redirect_uris": [
"<string>"
],
"grant_types": [
"authorization_code",
"refresh_token"
],
"response_types": [
"code"
],
"token_endpoint_auth_method": "client_secret_post"
}
'import requests
url = "https://api.agentpowers.ai/v1/oauth/register"
payload = {
"client_name": "<string>",
"redirect_uris": ["<string>"],
"grant_types": ["authorization_code", "refresh_token"],
"response_types": ["code"],
"token_endpoint_auth_method": "client_secret_post"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
client_name: '<string>',
redirect_uris: ['<string>'],
grant_types: ['authorization_code', 'refresh_token'],
response_types: ['code'],
token_endpoint_auth_method: 'client_secret_post'
})
};
fetch('https://api.agentpowers.ai/v1/oauth/register', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"client_id": "<string>",
"client_secret": "<string>",
"client_name": "<string>",
"redirect_uris": [
"<string>"
],
"grant_types": [
"<string>"
],
"response_types": [
"<string>"
],
"token_endpoint_auth_method": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}oauth
Register Client
Register a new OAuth client dynamically (rate-limited).
POST
/
v1
/
oauth
/
register
Register Client
curl --request POST \
--url https://api.agentpowers.ai/v1/oauth/register \
--header 'Content-Type: application/json' \
--data '
{
"client_name": "<string>",
"redirect_uris": [
"<string>"
],
"grant_types": [
"authorization_code",
"refresh_token"
],
"response_types": [
"code"
],
"token_endpoint_auth_method": "client_secret_post"
}
'import requests
url = "https://api.agentpowers.ai/v1/oauth/register"
payload = {
"client_name": "<string>",
"redirect_uris": ["<string>"],
"grant_types": ["authorization_code", "refresh_token"],
"response_types": ["code"],
"token_endpoint_auth_method": "client_secret_post"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
client_name: '<string>',
redirect_uris: ['<string>'],
grant_types: ['authorization_code', 'refresh_token'],
response_types: ['code'],
token_endpoint_auth_method: 'client_secret_post'
})
};
fetch('https://api.agentpowers.ai/v1/oauth/register', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"client_id": "<string>",
"client_secret": "<string>",
"client_name": "<string>",
"redirect_uris": [
"<string>"
],
"grant_types": [
"<string>"
],
"response_types": [
"<string>"
],
"token_endpoint_auth_method": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Body
application/json
Was this page helpful?
⌘I