Skip to main content

Authentication

HTTP requests to the REST API are protected with HTTP Basic authentication.

In short, you will use your Auth Token as the password for HTTP Basic authentication with Biteship.

Note that Biteship Auth Token will have biteship_live. or biteship_test. as a prefix in every token issued and token identifier called token Id to help you manage your API keys.

curl --request POST \
--url https://api.biteship.com/v1/rates/couriers \
--header 'authorization: <<YOUR_API_KEY>>' \
--header 'content-type: application/json' \

Generate New API Key

Go to Biteship dashboard integration page at https://dashboard.biteship.com/integrations and click "Pengaturan" to start setting up your API key.

Biteship Generate New Token for API Image

Click "Tambah Kunci API" to generate new API key.

Biteship Generate New Token for API Image

You will be prompt to name your API Key

Biteship Generate New Token for API Image

API key will be automatically generated. API key will be shown only once. Make sure you keep it save.

Biteship Generate New Token for API Image

Your key will be generated and shown here at the API integration page. However, your Order API will be not active yet. You need to submit an activation request to activate your Order API.

Biteship Generate New Token for API Image

Key for Testing

For testing purpose, make sure you activate the "Testing Mode" toggle in the sidebar. And you can follow the same process to generate your testing API key.

Biteship Generate New Token for API Image

However, for Testing Mode, your Order API will be active by default for you to test.

Biteship Generate New Token for API Image

Authentication Error Codes

CodeMessage
40000001Authentication for your key has failed. Please make sure to input the right key or contact [email protected] for more information.
40101001Authorization failed
40101002No account found with associated key
40101003Cannot process authorization
40301001There's no match token for this key
40301002User information not found.