API
Begin a PKCE OAuth authorization flow
POST
/auth/oauth/{provider}/start
const url = 'https://mw.omazy.ai/api/v1/auth/oauth/example/start';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"client_return":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://mw.omazy.ai/api/v1/auth/oauth/example/start \ --header 'Content-Type: application/json' \ --data '{ "client_return": "example" }'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”provider
required
string
Provider name (google, apple)
Request Body
Section titled “Request Body”Optional client return URL
Media typeapplication/json
object
client_return
string
Examplegenerated
{ "client_return": "example"}Responses
Section titled “Responses”OK
Media typeapplication/json
object
data
error
object
code
string
message
string
meta
object
next_cursor
string
page
integer
per_page
integer
total
integer
success
boolean
data
object
authorization_url
string
state
string
Examplegenerated
{ "data": { "authorization_url": "example", "state": "example" }, "error": { "code": "example", "message": "example" }, "meta": { "next_cursor": "example", "page": 1, "per_page": 1, "total": 1 }, "success": true}Bad Request
Media typeapplication/json
object
data
error
object
code
string
message
string
meta
object
next_cursor
string
page
integer
per_page
integer
total
integer
success
boolean
error
object
code
string
message
string
Examplegenerated
{ "data": "example", "error": { "code": "example", "message": "example" }, "meta": { "next_cursor": "example", "page": 1, "per_page": 1, "total": 1 }, "success": true}