Access keys

Create a Planviewer API access key, and for all server-side requests provide the user and password as HTTP basic auth parameters. These credentials identify the application for which these requests are made.

Request Headers:
  • Authorization – Base64 user and password separated with ‘:’ as per HTTP standard.

Example request:

Given API acces key 47e7df66f957 and secret cynaivrjre:

POST /maps_api/v1/server/map
Accept: application/json
Authorization: Basic NDdlN2RmNjZmOTU3OmN5bmFpdnJqcmU=

Or using curl:

$ curl -u 47e7df66f957:cynaivrjre

Example response:

    "error": {
        "code": 401,
        "message": "Unauthorized"