10. Web Component

Get a one-time url to render the FriendlyScore WebComponent

Changed on
post/public/v3/component_auth/init

Request

  • Base URL
    https://api.friendlyscore.com (the document declares no server; this is the origin it was published from)
  • Auth
    none declared

Request body

ipstring required
user_agentstring required
user_referencestring
originstring required

Example request

{
  "ip": "1.2.3.4",
  "user_agent": "Mozilla/5.0 (X11; Linux AMD64; rv:70.0.0) Gecko/20100101 Firefox/70.0.0",
  "user_reference": "my-user-1234",
  "origin": "https://example.com"
}

Response

Returns ComponentInitResponse with one time url

urlstring
created_atinteger
expires_ininteger
flowstring[]

Example response

{
  "url": "https://component.friendlyscore.com/render/token=123456789",
  "created_at": 1541014557,
  "expires_in": 1800
}

Changes