Skip to main content
POST
Exchange OAuth code

Authorizations

Authorization
string
header
required

API key as Authorization: Bearer sk-social-...

Body

application/json
provider
enum<string>
required

OAuth provider: google or github.

Available options:
google,
github
Example:

"google"

code
string
required

Authorization code from the OAuth redirect.

Response

200 - application/json

Session created.

success
boolean
required
Example:

true

data
object
required