Complete OAuth flow and store Google Earth Engine credentials.

Authentication: JWT token required Authorization: Any authenticated user Content-Type: application/json

Request Body Schema:

{
  "code": "authorization_code_from_google",
  "state": "state_token_from_initiate_call"
}

Required Fields:

  • code: Authorization code received from Google OAuth callback
  • state: State token from the initiate call for CSRF protection

Response Schema:

{
  "message": "GEE OAuth credentials saved successfully"
}

Error Responses:

  • 400 Bad Request: Missing code/state, invalid code, or JSON parsing error
  • 401 Unauthorized: JWT token required or invalid
  • 404 Not Found: User not found
  • 500 Internal Server Error: Failed to exchange code or save credentials
post/api/v1/user/me/gee-oauth/callback

Request body

object required

Response

Success

object required

Changes

No recorded changes to this endpoint across all 1 revision of this API.