OAuth
Register an OAuth client
POST
/
v1
/
oauth
/
register
Register an OAuth client
curl --request POST \
--url https://api.sempera.org/v1/oauth/register \
--header 'Content-Type: application/json' \
--data '
{
"redirect_uris": [
"<string>"
]
}
'import requests
url = "https://api.sempera.org/v1/oauth/register"
payload = { "redirect_uris": ["<string>"] }
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({redirect_uris: ['<string>']})
};
fetch('https://api.sempera.org/v1/oauth/register', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"redirect_uris": [
"<string>"
],
"client_name": "<string>",
"token_endpoint_auth_method": "none",
"grant_types": [
"authorization_code"
],
"response_types": [
"code"
],
"client_id": "<string>",
"client_id_issued_at": 123,
"client_secret": "<string>",
"client_secret_expires_at": 0
}{
"error": "<string>",
"error_description": "<string>"
}{
"error": "<string>",
"error_description": "<string>"
}{
"error": {
"code": "AGENT_ENV_UNPINNED",
"message": "<string>",
"request_id": "<string>",
"field": "<string>",
"scope": "<string>",
"reason": "<string>"
}
}{
"error": "<string>",
"error_description": "<string>"
}Body
application/json
Exact HTTPS redirects, or HTTP on loopback.
Required array length:
1 - 10 elementsAvailable options:
none, client_secret_post, client_secret_basic Available options:
authorization_code, refresh_token Response
Registered
Exact HTTPS redirects, or HTTP on loopback.
Required array length:
1 - 10 elementsAvailable options:
none, client_secret_post, client_secret_basic Available options:
authorization_code, refresh_token ⌘I
Register an OAuth client
curl --request POST \
--url https://api.sempera.org/v1/oauth/register \
--header 'Content-Type: application/json' \
--data '
{
"redirect_uris": [
"<string>"
]
}
'import requests
url = "https://api.sempera.org/v1/oauth/register"
payload = { "redirect_uris": ["<string>"] }
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({redirect_uris: ['<string>']})
};
fetch('https://api.sempera.org/v1/oauth/register', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"redirect_uris": [
"<string>"
],
"client_name": "<string>",
"token_endpoint_auth_method": "none",
"grant_types": [
"authorization_code"
],
"response_types": [
"code"
],
"client_id": "<string>",
"client_id_issued_at": 123,
"client_secret": "<string>",
"client_secret_expires_at": 0
}{
"error": "<string>",
"error_description": "<string>"
}{
"error": "<string>",
"error_description": "<string>"
}{
"error": {
"code": "AGENT_ENV_UNPINNED",
"message": "<string>",
"request_id": "<string>",
"field": "<string>",
"scope": "<string>",
"reason": "<string>"
}
}{
"error": "<string>",
"error_description": "<string>"
}