Step 3: Create Customer Token

POST

/public/v3/customers/{customer_id}/token

Creates new customer token. You will use it for authentication.

Parameters

ParameterData typeRequired?Description
customer_idstringyesCustomer ID

Query parameters

none

Request Body Parameters

none

Response Body Parameters

ParameterData typeRequired?Description
tokenstringyesCustomer Token. You will use this token in authentication header for several API endpoints and Mobile SDK

Request example

1 2 3 curl --location --request POST 'https://api.friendlyscore.com/public/v3/customers/{customer_id}/token' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer {access_token}'

Response example:

1 2 3 { "token": "1234" }

Was this article helpful?

Friendly Score UK Ltd.

84 Brook Street

London W1K 5EH

Call us on +44 20 3709 6726

Company registered in England

Company number 09168668, ICO ZA111687

VAT registration number 206 9758 80

Authorised and Regulated by the Financial Conduct Authority. (FRN: 821100, 781963)