Skip to main content
POST
/
youtube
/
oauth
/
callback
YouTube OAuth Callback Endpoint
curl --request POST \
  --url https://backend.clipvision.ai/youtube/oauth/callback \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "request_url": "<string>",
  "redirect_uri": "<string>",
  "state": "<string>"
}'
{
  "access_token": {
    "token": "ya29.a0AfB_byAHoRIisnxsXs8p-HUIamXB6Ah5EuM6c4H6VFapy10FXFQp__u2V_Rfpym_m1QDolLqlCSJ5IYGWUqPpFS5D95CkzFa8KQTmaShjyfd8r8O5lneN47_gfce3PAiX_wiw-c3pt-JHEMlt9BULphoFgzaGg1Kel1kaCgYKARASARESFQHGX2MiX8Tf3yRlb4XTbpuAltWNIw0171",
    "refresh_token": "1//09i2-LKuXjfacCgYIARAAGAkSNwF-L9IrQbVFsti16aYij3iQejWdPOhdj1DjtKHgJyVrHBPrlMLjSmrvhlCm35Zawn0CWNWFOJo",
    "id_token": null,
    "token_uri": "https://oauth2.googleapis.com/token",
    "client_id": "client_id",
    "client_secret": "client_secret",
    "scopes": [
      "https://www.googleapis.com/auth/youtube.upload",
      "https://www.googleapis.com/auth/youtube.download",
      "https://www.googleapis.com/auth/youtube.readonly",
      "https://www.googleapis.com/auth/youtube",
      "https://www.googleapis.com/auth/youtube.force-ssl",
      "https://www.googleapis.com/auth/youtubepartner",
      "https://www.googleapis.com/auth/youtubepartner-channel-audit",
      "https://www.googleapis.com/auth/youtube.channel-memberships.creator",
      "https://www.googleapis.com/auth/youtube.channel-memberships.creator",
      "https://www.googleapis.com/auth/youtube.third-party-link.creator"
    ],
    "default_scopes": null,
    "quota_project_id": null,
    "expiry": "2024-03-02T15:44:00.537Z",
    "rapt_token": null,
    "refresh_handler": null,
    "enable_reauth_refresh": false,
    "granted_scopes": [
      "https://www.googleapis.com/auth/youtube.upload",
      "https://www.googleapis.com/auth/youtube.download",
      "https://www.googleapis.com/auth/youtube.readonly",
      "https://www.googleapis.com/auth/youtube",
      "https://www.googleapis.com/auth/youtube.force-ssl",
      "https://www.googleapis.com/auth/youtubepartner",
      "https://www.googleapis.com/auth/youtubepartner-channel-audit",
      "https://www.googleapis.com/auth/youtube.channel-memberships.creator",
      "https://www.googleapis.com/auth/youtube.channel-memberships.creator",
      "https://www.googleapis.com/auth/youtube.third-party-link.creator"
    ]
  },
  "error": null
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json
request_url
string
required
Minimum length: 1
redirect_uri
string
required
Minimum length: 1
state
string
required
Minimum length: 1

Response

Access token generated successfully

Access Token Response Object OpenAPI Schema

access_token
object

Google Credentials OpenAPI Schema

error
string