Submit the OAuth consent decision (Allow / Deny)
curl --request POST \
--url https://api.mnemom.ai/v1/oauth/authorize \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data 'client_id=<string>' \
--data 'redirect_uri=<string>' \
--data 'code_challenge=<string>' \
--data 'scope=<string>' \
--data 'org_id=<string>' \
--data 'csrf=<string>' \
--data 'state=<string>' \
--data code_challenge_method=S256 \
--data response_type=codeimport requests
url = "https://api.mnemom.ai/v1/oauth/authorize"
payload = {
"client_id": "<string>",
"redirect_uri": "<string>",
"code_challenge": "<string>",
"scope": "<string>",
"org_id": "<string>",
"csrf": "<string>",
"state": "<string>",
"code_challenge_method": "S256",
"response_type": "code"
}
headers = {"Content-Type": "application/x-www-form-urlencoded"}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/x-www-form-urlencoded'},
body: new URLSearchParams({
client_id: '<string>',
redirect_uri: '<string>',
code_challenge: '<string>',
scope: '<string>',
org_id: '<string>',
csrf: '<string>',
state: '<string>',
code_challenge_method: 'S256',
response_type: 'code'
})
};
fetch('https://api.mnemom.ai/v1/oauth/authorize', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.mnemom.ai/v1/oauth/authorize",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "client_id=%3Cstring%3E&redirect_uri=%3Cstring%3E&code_challenge=%3Cstring%3E&scope=%3Cstring%3E&org_id=%3Cstring%3E&csrf=%3Cstring%3E&state=%3Cstring%3E&code_challenge_method=S256&response_type=code",
CURLOPT_HTTPHEADER => [
"Content-Type: application/x-www-form-urlencoded"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.mnemom.ai/v1/oauth/authorize"
payload := strings.NewReader("client_id=%3Cstring%3E&redirect_uri=%3Cstring%3E&code_challenge=%3Cstring%3E&scope=%3Cstring%3E&org_id=%3Cstring%3E&csrf=%3Cstring%3E&state=%3Cstring%3E&code_challenge_method=S256&response_type=code")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/x-www-form-urlencoded")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.mnemom.ai/v1/oauth/authorize")
.header("Content-Type", "application/x-www-form-urlencoded")
.body("client_id=%3Cstring%3E&redirect_uri=%3Cstring%3E&code_challenge=%3Cstring%3E&scope=%3Cstring%3E&org_id=%3Cstring%3E&csrf=%3Cstring%3E&state=%3Cstring%3E&code_challenge_method=S256&response_type=code")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mnemom.ai/v1/oauth/authorize")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/x-www-form-urlencoded'
request.body = "client_id=%3Cstring%3E&redirect_uri=%3Cstring%3E&code_challenge=%3Cstring%3E&scope=%3Cstring%3E&org_id=%3Cstring%3E&csrf=%3Cstring%3E&state=%3Cstring%3E&code_challenge_method=S256&response_type=code"
response = http.request(request)
puts response.read_body"<string>"{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}OAuth
Submit the OAuth consent decision (Allow / Deny)
Processes the consent form.
POST
/
oauth
/
authorize
Submit the OAuth consent decision (Allow / Deny)
curl --request POST \
--url https://api.mnemom.ai/v1/oauth/authorize \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data 'client_id=<string>' \
--data 'redirect_uri=<string>' \
--data 'code_challenge=<string>' \
--data 'scope=<string>' \
--data 'org_id=<string>' \
--data 'csrf=<string>' \
--data 'state=<string>' \
--data code_challenge_method=S256 \
--data response_type=codeimport requests
url = "https://api.mnemom.ai/v1/oauth/authorize"
payload = {
"client_id": "<string>",
"redirect_uri": "<string>",
"code_challenge": "<string>",
"scope": "<string>",
"org_id": "<string>",
"csrf": "<string>",
"state": "<string>",
"code_challenge_method": "S256",
"response_type": "code"
}
headers = {"Content-Type": "application/x-www-form-urlencoded"}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/x-www-form-urlencoded'},
body: new URLSearchParams({
client_id: '<string>',
redirect_uri: '<string>',
code_challenge: '<string>',
scope: '<string>',
org_id: '<string>',
csrf: '<string>',
state: '<string>',
code_challenge_method: 'S256',
response_type: 'code'
})
};
fetch('https://api.mnemom.ai/v1/oauth/authorize', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.mnemom.ai/v1/oauth/authorize",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "client_id=%3Cstring%3E&redirect_uri=%3Cstring%3E&code_challenge=%3Cstring%3E&scope=%3Cstring%3E&org_id=%3Cstring%3E&csrf=%3Cstring%3E&state=%3Cstring%3E&code_challenge_method=S256&response_type=code",
CURLOPT_HTTPHEADER => [
"Content-Type: application/x-www-form-urlencoded"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.mnemom.ai/v1/oauth/authorize"
payload := strings.NewReader("client_id=%3Cstring%3E&redirect_uri=%3Cstring%3E&code_challenge=%3Cstring%3E&scope=%3Cstring%3E&org_id=%3Cstring%3E&csrf=%3Cstring%3E&state=%3Cstring%3E&code_challenge_method=S256&response_type=code")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/x-www-form-urlencoded")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.mnemom.ai/v1/oauth/authorize")
.header("Content-Type", "application/x-www-form-urlencoded")
.body("client_id=%3Cstring%3E&redirect_uri=%3Cstring%3E&code_challenge=%3Cstring%3E&scope=%3Cstring%3E&org_id=%3Cstring%3E&csrf=%3Cstring%3E&state=%3Cstring%3E&code_challenge_method=S256&response_type=code")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mnemom.ai/v1/oauth/authorize")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/x-www-form-urlencoded'
request.body = "client_id=%3Cstring%3E&redirect_uri=%3Cstring%3E&code_challenge=%3Cstring%3E&scope=%3Cstring%3E&org_id=%3Cstring%3E&csrf=%3Cstring%3E&state=%3Cstring%3E&code_challenge_method=S256&response_type=code"
response = http.request(request)
puts response.read_body"<string>"{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}Body
application/x-www-form-urlencoded
Available options:
allow, deny Available options:
S256 Available options:
code Response
Redirect back to the client with code+state, or with an OAuth error.
OAuth 2.1 authorization endpoint (renders the consent screen)OAuth 2.0 Dynamic Client Registration (RFC 7591)
⌘I