Wemap Services API

Getting started

Before you can make use of the Wemap Services API, you need to register your applications. From the Wemap Pro portal click on your name in the upper right corner then select “Developer settings”.

Create your application and make a note of the client id and client secret.

You can now request an OAuth2 access token using Basic authentication as follows.

Example request:

POST /v3.0/oauth2/token HTTP/1.1
Authorization: Basic c29tZS1jbGllbnQtaWQ6c29tZS1jbGllbnQtc2VjcmV0
Content-Type: application/x-www-form-urlencoded
client_id=some_client_id&grant_type=client_credentials

Example response:

HTTP/1.1 200 OK
Content-Type: application/json
{
"access_token": "JGTEVsbnhfjtKXoyJRriYgwDlGHsun",
"expires_in": 36000,
"scope": "write read",
"token_type": "Bearer"
}

Making requests

All Wemap API calls need to be authenticated by using a Bearer token in the Authorization header:

GET /some/endpoint HTTP/1.1
Authorization: Bearer <Access-Token>

Requests take either no data or JSON data as input, and return data as JSON. Make soure you set the correct Content-Type header when sending JSON:

POST /some/endpoint HTTP/1.1
Content-Type: application/json

Available APIs