StedelijkLeiden.nl | API Docs
  • Home
  • Url's
  • API key
Powered by GitBook
On this page
  • Create key
  • Refresh key
  • Key validation

Was this helpful?

API key

Create key

POST https://stedelijkleiden.nl/api/createkey

Create a API key with your e-mail

Request Body

Name
Type
Description

email

string

The email to create the key with

{
    "email": "email@example.com",
    "key": "FHDPNYW-XZZMTAP-PG9RBA2-8H6T9N2",
    "id": "7c5b6afb-efff-4d2a-b413-85a8444da4d4"
}
{
    "message": "This e-mail already has a key!"
}
{
    "message": "Email is required!"
}
{
    "message": "Valid email is required!"
}

Refresh key

POST https;//stedelijkleiden.nl/api/newkey

Refresh your api key

Request Body

Name
Type
Description

id

string

Your current api key id!

key

string

your current api key secret!

email

string

your api key email!

{
    "message": "Email is required!"
}
{
    "message": "Id is required!"
}
{
    "message": "Key is required!"
}

Key validation

GET https://stedelijkleiden.nl/api/isvalidkey

Check if an API key is valid!

Request Body

Name
Type
Description

id

string

The API key id!

key

string

The API key secret!

{
    "message": "Key is valid!"
}
{
    "message": "Key is invalid!"
}
PreviousUrl's

Last updated 3 years ago

Was this helpful?