Skip to main content
GET
/
api
/
auth
/
token_complete
Complete the Canvas LMS API authorization handoff
curl --request GET \
  --url https://pria.praxislxp.com/api/auth/token_complete
"<string>"

Documentation Index

Fetch the complete documentation index at: https://docs.praxis-ai.com/llms.txt

Use this file to discover all available pages before exploring further.

Query Parameters

code
string
required

Canvas OAuth authorization code to exchange for an access token.

state
string
required

Pria user _id — set during the original consentUrl generation so this callback can find which Pria user to attach the Canvas token to.

error
string

Set by Canvas when the user denies the consent screen.

error_description
string

Human-readable failure reason that accompanies error.

Response

Canvas token stored successfully. Returns an HTML page (TOKEN_SUCCESS_HTML) that closes the popup window and signals the opener to retry.

The response is of type string.