{
  "info": {
    "_postman_id": "aaca9e20-f50f-4701-8b85-431388842246",
    "name": "Clerk Backend Account Portal OAuth2 Callbacks API",
    "description": "The Clerk REST Backend API, meant to be accessed by backend servers.\n\n### Versions\n\nWhen the API changes in a way that isn't compatible with older versions, a new version is released.\nEach version is identified by its release date, e.g. `2025-04-10`. For more information, please see [Clerk API Versions](https://clerk.com/docs/versioning/available-versions).\n\nPlease see https://clerk.com/docs for more information.\n\nContact Support:\n Name: Clerk Platform Team\n Email: support@clerk.com",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "createdAt": "2026-07-28T01:24:01.000Z",
    "updatedAt": "2026-07-28T01:24:01.000Z",
    "lastUpdatedBy": "35240",
    "uid": "35240-aaca9e20-f50f-4701-8b85-431388842246"
  },
  "item": [
    {
      "name": "v1",
      "item": [
        {
          "name": "oauth_callback",
          "item": [
            {
              "name": "OAuth Callback",
              "id": "0983066e-9f64-4989-9584-c54630144a59",
              "protocolProfileBehavior": {
                "disableBodyPruning": true
              },
              "request": {
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/v1/oauth_callback?scope=<string>&code=<string>&state=<string>&error=<string>",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "oauth_callback"
                  ],
                  "query": [
                    {
                      "description": "returned scopes from OAuth provider.",
                      "key": "scope",
                      "value": "<string>"
                    },
                    {
                      "description": "returned exchange code from OAuth provider.",
                      "key": "code",
                      "value": "<string>"
                    },
                    {
                      "description": "returned state from OAuth provider.",
                      "key": "state",
                      "value": "<string>"
                    },
                    {
                      "description": "returned error state from OAuth provider, if applicable",
                      "key": "error",
                      "value": "<string>"
                    }
                  ]
                },
                "description": "The endpoint where the OAuth providers redirect to after a successful authentication attempt."
              },
              "response": [
                {
                  "id": "9bfa9961-6f39-4635-9092-d2436fb3b848",
                  "name": "[AuthV2] HTML-based redirection in dev instances",
                  "originalRequest": {
                    "method": "GET",
                    "header": [
                      {
                        "description": "Added as a part of security scheme: bearer",
                        "key": "Authorization",
                        "value": "Bearer <token>"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/v1/oauth_callback?scope=<string>&code=<string>&state=<string>&error=<string>",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "v1",
                        "oauth_callback"
                      ],
                      "query": [
                        {
                          "description": "returned scopes from OAuth provider.",
                          "key": "scope",
                          "value": "<string>"
                        },
                        {
                          "description": "returned exchange code from OAuth provider.",
                          "key": "code",
                          "value": "<string>"
                        },
                        {
                          "description": "returned state from OAuth provider.",
                          "key": "state",
                          "value": "<string>"
                        },
                        {
                          "description": "returned error state from OAuth provider, if applicable",
                          "key": "error",
                          "value": "<string>"
                        }
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "text",
                  "header": [],
                  "cookie": [],
                  "responseTime": null,
                  "body": null,
                  "createdAt": "2026-07-28T01:24:01.000Z",
                  "updatedAt": "2026-07-28T01:24:01.000Z",
                  "uid": "35240-9bfa9961-6f39-4635-9092-d2436fb3b848"
                },
                {
                  "id": "3ae9b767-c80a-4b17-9010-ae14494e0417",
                  "name": "FAKE SUCCESS",
                  "originalRequest": {
                    "method": "GET",
                    "header": [
                      {
                        "description": "Added as a part of security scheme: bearer",
                        "key": "Authorization",
                        "value": "Bearer <token>"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/v1/oauth_callback?scope=<string>&code=<string>&state=<string>&error=<string>",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "v1",
                        "oauth_callback"
                      ],
                      "query": [
                        {
                          "description": "returned scopes from OAuth provider.",
                          "key": "scope",
                          "value": "<string>"
                        },
                        {
                          "description": "returned exchange code from OAuth provider.",
                          "key": "code",
                          "value": "<string>"
                        },
                        {
                          "description": "returned state from OAuth provider.",
                          "key": "state",
                          "value": "<string>"
                        },
                        {
                          "description": "returned error state from OAuth provider, if applicable",
                          "key": "error",
                          "value": "<string>"
                        }
                      ]
                    }
                  },
                  "_postman_previewlanguage": "text",
                  "header": [],
                  "cookie": [],
                  "responseTime": null,
                  "body": null,
                  "createdAt": "2026-07-28T01:24:01.000Z",
                  "updatedAt": "2026-07-28T01:24:01.000Z",
                  "uid": "35240-3ae9b767-c80a-4b17-9010-ae14494e0417"
                },
                {
                  "id": "9a49d5ff-bf5e-4f74-ac2d-04ed2a633121",
                  "name": "Redirect",
                  "originalRequest": {
                    "method": "GET",
                    "header": [
                      {
                        "description": "Added as a part of security scheme: bearer",
                        "key": "Authorization",
                        "value": "Bearer <token>"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/v1/oauth_callback?scope=<string>&code=<string>&state=<string>&error=<string>",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "v1",
                        "oauth_callback"
                      ],
                      "query": [
                        {
                          "description": "returned scopes from OAuth provider.",
                          "key": "scope",
                          "value": "<string>"
                        },
                        {
                          "description": "returned exchange code from OAuth provider.",
                          "key": "code",
                          "value": "<string>"
                        },
                        {
                          "description": "returned state from OAuth provider.",
                          "key": "state",
                          "value": "<string>"
                        },
                        {
                          "description": "returned error state from OAuth provider, if applicable",
                          "key": "error",
                          "value": "<string>"
                        }
                      ]
                    }
                  },
                  "status": "Moved Permanently",
                  "code": 301,
                  "_postman_previewlanguage": "text",
                  "header": [],
                  "cookie": [],
                  "responseTime": null,
                  "body": null,
                  "createdAt": "2026-07-28T01:24:01.000Z",
                  "updatedAt": "2026-07-28T01:24:01.000Z",
                  "uid": "35240-9a49d5ff-bf5e-4f74-ac2d-04ed2a633121"
                },
                {
                  "id": "89631743-61e3-4159-b093-f07e83a907a7",
                  "name": "Redirect",
                  "originalRequest": {
                    "method": "GET",
                    "header": [
                      {
                        "description": "Added as a part of security scheme: bearer",
                        "key": "Authorization",
                        "value": "Bearer <token>"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/v1/oauth_callback?scope=<string>&code=<string>&state=<string>&error=<string>",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "v1",
                        "oauth_callback"
                      ],
                      "query": [
                        {
                          "description": "returned scopes from OAuth provider.",
                          "key": "scope",
                          "value": "<string>"
                        },
                        {
                          "description": "returned exchange code from OAuth provider.",
                          "key": "code",
                          "value": "<string>"
                        },
                        {
                          "description": "returned state from OAuth provider.",
                          "key": "state",
                          "value": "<string>"
                        },
                        {
                          "description": "returned error state from OAuth provider, if applicable",
                          "key": "error",
                          "value": "<string>"
                        }
                      ]
                    }
                  },
                  "status": "See Other",
                  "code": 303,
                  "_postman_previewlanguage": "text",
                  "header": [],
                  "cookie": [],
                  "responseTime": null,
                  "body": null,
                  "createdAt": "2026-07-28T01:24:01.000Z",
                  "updatedAt": "2026-07-28T01:24:01.000Z",
                  "uid": "35240-89631743-61e3-4159-b093-f07e83a907a7"
                },
                {
                  "id": "f34edee0-ed79-4119-be6e-cd87d07e5aee",
                  "name": "Request was not successful",
                  "originalRequest": {
                    "method": "GET",
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      },
                      {
                        "description": "Added as a part of security scheme: bearer",
                        "key": "Authorization",
                        "value": "Bearer <token>"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/v1/oauth_callback?scope=<string>&code=<string>&state=<string>&error=<string>",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "v1",
                        "oauth_callback"
                      ],
                      "query": [
                        {
                          "description": "returned scopes from OAuth provider.",
                          "key": "scope",
                          "value": "<string>"
                        },
                        {
                          "description": "returned exchange code from OAuth provider.",
                          "key": "code",
                          "value": "<string>"
                        },
                        {
                          "description": "returned state from OAuth provider.",
                          "key": "state",
                          "value": "<string>"
                        },
                        {
                          "description": "returned error state from OAuth provider, if applicable",
                          "key": "error",
                          "value": "<string>"
                        }
                      ]
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "responseTime": null,
                  "body": "{\n  \"errors\": [\n    {\n      \"message\": \"<string>\",\n      \"long_message\": \"<string>\",\n      \"code\": \"<string>\",\n      \"meta\": {}\n    },\n    {\n      \"message\": \"<string>\",\n      \"long_message\": \"<string>\",\n      \"code\": \"<string>\",\n      \"meta\": {}\n    }\n  ],\n  \"meta\": {},\n  \"clerk_trace_id\": \"<string>\"\n}",
                  "createdAt": "2026-07-28T01:24:01.000Z",
                  "updatedAt": "2026-07-28T01:24:01.000Z",
                  "uid": "35240-f34edee0-ed79-4119-be6e-cd87d07e5aee"
                },
                {
                  "id": "a0caff7e-f1d6-451e-974b-4bd6a3dad82c",
                  "name": "Request was not successful",
                  "originalRequest": {
                    "method": "GET",
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      },
                      {
                        "description": "Added as a part of security scheme: bearer",
                        "key": "Authorization",
                        "value": "Bearer <token>"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/v1/oauth_callback?scope=<string>&code=<string>&state=<string>&error=<string>",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "v1",
                        "oauth_callback"
                      ],
                      "query": [
                        {
                          "description": "returned scopes from OAuth provider.",
                          "key": "scope",
                          "value": "<string>"
                        },
                        {
                          "description": "returned exchange code from OAuth provider.",
                          "key": "code",
                          "value": "<string>"
                        },
                        {
                          "description": "returned state from OAuth provider.",
                          "key": "state",
                          "value": "<string>"
                        },
                        {
                          "description": "returned error state from OAuth provider, if applicable",
                          "key": "error",
                          "value": "<string>"
                        }
                      ]
                    }
                  },
                  "status": "Forbidden",
                  "code": 403,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "responseTime": null,
                  "body": "{\n  \"errors\": [\n    {\n      \"message\": \"<string>\",\n      \"long_message\": \"<string>\",\n      \"code\": \"<string>\",\n      \"meta\": {}\n    },\n    {\n      \"message\": \"<string>\",\n      \"long_message\": \"<string>\",\n      \"code\": \"<string>\",\n      \"meta\": {}\n    }\n  ],\n  \"meta\": {},\n  \"clerk_trace_id\": \"<string>\"\n}",
                  "createdAt": "2026-07-28T01:24:01.000Z",
                  "updatedAt": "2026-07-28T01:24:01.000Z",
                  "uid": "35240-a0caff7e-f1d6-451e-974b-4bd6a3dad82c"
                }
              ],
              "createdAt": "2026-07-28T01:24:01.000Z",
              "updatedAt": "2026-07-28T01:24:01.000Z",
              "uid": "35240-0983066e-9f64-4989-9584-c54630144a59"
            },
            {
              "name": "OAuth Post Callback",
              "id": "33453f85-6ff6-4169-97e5-a1fe0f5bb902",
              "protocolProfileBehavior": {
                "disableBodyPruning": true
              },
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/x-www-form-urlencoded"
                  }
                ],
                "body": {
                  "mode": "urlencoded",
                  "urlencoded": [
                    {
                      "description": "returned exchange code from OAuth provider.",
                      "key": "code",
                      "value": "<string>"
                    },
                    {
                      "description": "returned scopes from OAuth provider.",
                      "key": "scope",
                      "value": "<string>"
                    },
                    {
                      "description": "returned state from OAuth provider.",
                      "key": "state",
                      "value": "<string>"
                    },
                    {
                      "description": "returned error state from OAuth provider, if applicable",
                      "key": "error",
                      "value": "<string>"
                    },
                    {
                      "key": "dolore81",
                      "value": "-70993320.55375807"
                    }
                  ]
                },
                "url": {
                  "raw": "{{baseUrl}}/v1/oauth_callback",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "oauth_callback"
                  ]
                },
                "description": "Converts a POST to a GET, because if it's a POST coming from an external account. This is necessary because some providers (e.g. Apple) issue a POST instead of a GET request."
              },
              "response": [
                {
                  "id": "8f9b901f-142c-44c5-bf33-c07532ec81bc",
                  "name": "Redirect to GET /v1/oauth_callback with same parameters",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/x-www-form-urlencoded"
                      },
                      {
                        "description": "Added as a part of security scheme: bearer",
                        "key": "Authorization",
                        "value": "Bearer <token>"
                      }
                    ],
                    "body": {
                      "mode": "urlencoded",
                      "urlencoded": [
                        {
                          "description": "returned exchange code from OAuth provider.",
                          "key": "code",
                          "value": "<string>"
                        },
                        {
                          "description": "returned scopes from OAuth provider.",
                          "key": "scope",
                          "value": "<string>"
                        },
                        {
                          "description": "returned state from OAuth provider.",
                          "key": "state",
                          "value": "<string>"
                        },
                        {
                          "description": "returned error state from OAuth provider, if applicable",
                          "key": "error",
                          "value": "<string>"
                        },
                        {
                          "key": "dolore81",
                          "value": "-70993320.55375807"
                        }
                      ]
                    },
                    "url": {
                      "raw": "{{baseUrl}}/v1/oauth_callback",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "v1",
                        "oauth_callback"
                      ]
                    }
                  },
                  "status": "See Other",
                  "code": 303,
                  "_postman_previewlanguage": "text",
                  "header": [],
                  "cookie": [],
                  "responseTime": null,
                  "body": null,
                  "createdAt": "2026-07-28T01:24:01.000Z",
                  "updatedAt": "2026-07-28T01:24:01.000Z",
                  "uid": "35240-8f9b901f-142c-44c5-bf33-c07532ec81bc"
                }
              ],
              "createdAt": "2026-07-28T01:24:01.000Z",
              "updatedAt": "2026-07-28T01:24:01.000Z",
              "uid": "35240-33453f85-6ff6-4169-97e5-a1fe0f5bb902"
            }
          ],
          "id": "31ec301e-14dc-4c76-bb90-23ca7eed0f33",
          "createdAt": "2026-07-28T01:24:01.000Z",
          "updatedAt": "2026-07-28T01:24:01.000Z",
          "uid": "35240-31ec301e-14dc-4c76-bb90-23ca7eed0f33"
        }
      ],
      "id": "5f600f53-7426-44d5-b659-a34f6d226fc1",
      "createdAt": "2026-07-28T01:24:01.000Z",
      "updatedAt": "2026-07-28T01:24:01.000Z",
      "uid": "35240-5f600f53-7426-44d5-b659-a34f6d226fc1"
    }
  ],
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{bearerToken}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.clerk.com/v1"
    }
  ]
}