Get Javascript One Time Url

POST

/public/v3/component_auth/init

Get a one-time url to render the FriendlyScore WebComponent

Please also read detailed information How to implement Web Component

Parameters

none

Query parameters

none

Request body parameters

ParameterData typeRequired?Description
ipstringyesIP address of the customer. Put 0.0.0.0 if the IP address is unknown
user_agentstringyesUser Agent of the customer. Put "" if the user agent is unknown
user_referencestringyesUser Reference
originstringyesSet the origin where Web Component will be placed. Please remember to add this origin in Developer Panel

Response Body Parameters

ParameterData typeRequired?Description
urlstringyesURL of the One Time Javascript URL
created_atintegeryesTimestamp of creation
expires_inintegeryesTimestamp of expiration
flowarray<string>yesReturns always: open-banking

Request example

1 2 3 4 5 6 7 curl --location --request POST 'https://api.friendlyscore.com/public/v3/component_auth/init' --data-raw '{ "user_reference": "customer-1", "user_agent": "user-agent-data", "ip": "127.0.0.1", "origin": "http://localhost" }'

Response example:

1 2 3 4 5 6 7 8 { "url": "https://component.friendlyscore.com/render/token=123456789", "created_at": 1541014557, "expires_in": 1800, "flow": [ "open-banking" ] }

Was this article helpful?

Friendly Score UK Ltd.

52 Brook Street 1st Floor, Mayfair

London W1K 5DS

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: 781963)