Create Create OAuth user state.
Stay organized with collections
Save and categorize content based on your preferences.
Version 4.0.25.14 (latest)
Create OAuth User state.
Request
POST
/external_oauth_applications/user_state
Expand HTTP Body definition...
body
Create OAuth user state.
Expand CreateOAuthApplicationUserStateRequest definition...
oauth_application_id
string
access_token_expires_at
string
refresh_token_expires_at
string
Response
200: Created user state
user_id
lock
string
User Id
oauth_application_id
lock
string
OAuth Application ID
400: Bad Request
message
lock
string
Error details
documentation_url
lock
string
Documentation link
404: Not Found
message
lock
string
Error details
documentation_url
lock
string
Documentation link
409: Resource Already Exists
message
lock
string
Error details
documentation_url
lock
string
Documentation link
422: Validation Error
message
lock
string
Error details
Expand ValidationErrorDetail definition...
field
lock
string
Field with error
code
lock
string
Error code
message
lock
string
Error info message
documentation_url
lock
string
Documentation link
documentation_url
lock
string
Documentation link
429: Too Many Requests
message
lock
string
Error details
documentation_url
lock
string
Documentation link
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-20 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-20 UTC."],[],[],null,["# Create Create OAuth user state.\n\nVersion 4.0.25.14 (latest)\n\n### Create OAuth User state.\n\nRequest\n-------\n\nPOST /external_oauth_applications/user_state \nDatatype \nDescription \nRequest \nHTTP Request \nbody \nHTTP Body \nExpand HTTP Body definition... \nbody \n[CreateOAuthApplicationUserStateRequest](/looker/docs/reference/looker-api/latest/types/CreateOAuthApplicationUserStateRequest) \nCreate OAuth user state.\nExpand CreateOAuthApplicationUserStateRequest definition... \nuser_id \nstring \noauth_application_id \nstring \naccess_token \nstring \naccess_token_expires_at \nstring \nrefresh_token \nstring \nrefresh_token_expires_at \nstring \n\nResponse\n--------\n\n### 200: Created user state\n\nDatatype \nDescription \n(object) \n[CreateOAuthApplicationUserStateResponse](/looker/docs/reference/looker-api/latest/types/CreateOAuthApplicationUserStateResponse) \nuser_id \n*lock* \nstring \nUser Id \noauth_application_id \n*lock* \nstring \nOAuth Application ID\n\n### 400: Bad Request\n\nDatatype \nDescription \n(object) \n[Error](/looker/docs/reference/looker-api/latest/types/Error) \nmessage \n*lock* \nstring \nError details \ndocumentation_url \n*lock* \nstring \nDocumentation link\n\n### 404: Not Found\n\nDatatype \nDescription \n(object) \n[Error](/looker/docs/reference/looker-api/latest/types/Error) \nmessage \n*lock* \nstring \nError details \ndocumentation_url \n*lock* \nstring \nDocumentation link\n\n### 409: Resource Already Exists\n\nDatatype \nDescription \n(object) \n[Error](/looker/docs/reference/looker-api/latest/types/Error) \nmessage \n*lock* \nstring \nError details \ndocumentation_url \n*lock* \nstring \nDocumentation link\n\n### 422: Validation Error\n\nDatatype \nDescription \n(object) \n[ValidationError](/looker/docs/reference/looker-api/latest/types/ValidationError) \nmessage \n*lock* \nstring \nError details \nerrors \n[ValidationErrorDetail](/looker/docs/reference/looker-api/latest/types/ValidationErrorDetail)\\[\\] \nExpand ValidationErrorDetail definition... \nfield \n*lock* \nstring \nField with error \ncode \n*lock* \nstring \nError code \nmessage \n*lock* \nstring \nError info message \ndocumentation_url \n*lock* \nstring \nDocumentation link \ndocumentation_url \n*lock* \nstring \nDocumentation link\n\n### 429: Too Many Requests\n\nDatatype \nDescription \n(object) \n[Error](/looker/docs/reference/looker-api/latest/types/Error) \nmessage \n*lock* \nstring \nError details \ndocumentation_url \n*lock* \nstring \nDocumentation link"]]