Authentication

All REST Admin API queries require a valid Printway access token.

Include your token as a PW-ACCESS-TOKEN header on all API queries.

Get Access Token

Get Access Token.

GET https://api-v2.printway.io/api/v2/auth/token

Request Body

NameTypeDescription

email*

string

The email in our system

password*

string

The password of your account

{
    "status": 200,
    "message": "Access Token have been generated!",
    "result": {
        "access_token": "pwsa_XXX"
    }
}

Good to know: This API method was created using the API Method block, it's how you can build out an API method documentation from scratch. Have a play with the block and you'll see you can do some nifty things like add and reorder parameters, document responses, and give your methods detailed descriptions.

Generate Access Token

Generate Access Token.

POST https://api-v2.printway.io/api/v2/auth/token

Request Body

NameTypeDescription

email*

string

The email in our system

password*

string

The password of your account

{
    "status": 200,
    "message": "Access Token have been generated!",
    "result": {
        "access_token": "pwsa_XXX"
    }
}

Updating access token

Update access token.

PUT https://api-v2.printway.io/api/v2/auth/token

Request Body

NameTypeDescription

email*

string

The email in our system

password*

string

The password of your account

{
    "status": 200,
    "message": "Access Token have been updated!",
    "result": {
        "access_token": "pwsa_XXX"
    }
}

Last updated