Account

Create a key

The response is the only time the key is shown: only a hash is stored, so it cannot be retrieved again.

A public key is safe in a browser and must name the sites it may be used from.

post/v1/keys

Request

  • Base URL: https://api.locio.com.au
  • URL: https://api.locio.com.au/v1/keys
  • Auth: API key in cookie locio_session

Request body

namestring required
kind'secret' | 'public'
allowed_originsstring[]

Example request

{
  "name": "Checkout autocomplete",
  "allowed_origins": [
    "https://example.com"
  ]
}

Response

Created. Copy the key now.

Example response

{
  "data": {
    "hint": "pf_live_…9f2c",
    "key": "pf_live_3f9a2c7e8b1d4056a2f4c8e19b7d3a5c"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.