---
title: "Authorize user on Easyship"
method: GET
path: "/oauth2/authorize"
tags: ["Authorization"]
---

# Authorize user on Easyship

`GET /oauth2/authorize`

Redirect a user for authentication on Easyship. 

The endpoint is part of [OAuth 2.0 Authorization Code](https://developers.easyship.com/docs/how-to-authorize-easyship-user) flow.

> 🚧 Warning
> 
> This endpoint uses **auth.easyship.com** domain. The full URL, without query params, is `https://auth.easyship.com/oauth2/authorize`.
> *This docs platform does not fully support OpenAPI and uses/displays the global URL instead of the correct one.*

After successful authentication, the user will be redirected back to `redirect_uri` with a `code` (and `state`) parameter in the query string.

The `code` can then be exchanged for an access token using the [OAuth2 Token endpoint](https://developers.easyship.com/reference/oauth2_token-1) with `AUTHORIZATION_CODE` request body.

## Query parameters

- `client_id` ClientId, required — unresolved $ref
- `redirect_uri` RedirectUri, required — unresolved $ref
- `response_type` 'code', required
- `scope` Scope, required — unresolved $ref
- `state` string

## Response `200`

redirection

---

[API](https://skmtc.net/easyship/apis/easyship-public-api.md) · [All operations](https://skmtc.net/easyship/apis/easyship-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/easyship/easyship-public-api/revisions/71d737a5fcbf/schema)
