Scopes define what endpoints and functionality an API connection has access to.
Some scopes can be controlled by the user, and some are controlled by Easyship.
Create Public API Integration
There are two API categories that you can use for your API Integration.
- 2023-01 or earlier (legacy)
- 2024-09 or later
The 2024-09 is the latest stable (and recommended) version and will provide more flexibility for you to setup different integrations with different actions (read/write).
To create the integration.
- Login to your Easyship account at app.easyship.com
- Click New Integration under Connect on the sidebar
- Click API Integration on the bottom of the page
- Fill the details and select preferred API version
- Click Connect
Version differences
2023-01 and older
For versions 2023-01 or earlier, the list of scopes is displayed without specific actions. This means that each scope enables both read and write operations within its context. For example, when you enable the Address scope, it grants access to endpoints requiring the Address scope with all relevant HTTP methods: GET
, POST
, DELETE
, PATCH
, and PUT
.
2024-09 and newer
For versions 2024-09 or newer, the list of scopes is structured differently. Scopes are now displayed with a format like <scope>.<resource>:<action>
. Example: public.address:read
.
- The scope distinguishes between the Public API (
public
) and other APIs (e.g.,enterprise
) - The resource represents the same scope you’re familiar with from previous versions.
- The new action (usually
read
orwrite
), define specific access permissions:read
allows access to endpoints using theGET
method. These endpoint do not create or modify data.write
grants access to endpoints using methods such asPOST
,DELETE
,PATCH
, andPUT
and allows create, modify or destroy data.
Edit or View available scopes
To edit or view the scopes available for an API connection:
- Login to your Easyship account at app.easyship.com
- Select the API connection under the connect tab on the left
- Under the API Access token, you can see what scopes the token has access to.
- To edit access, click edit, select/deselect the scopes and click save.
If you require access to additional scopes (for advanced functionality or to get access to functionality currently under beta), please reach out to Easyship, either to your account manager or at https://support.easyship.com/hc/en-us