Authentication With WACM Connect

Prev Next

Base URL

WACM Connect API uses HTTP Basic Authentication over HTTPS to ensure secure access. The base URL is https://api.wacm.wasabisys.com

All requests must use HTTPS. Unsecured HTTP requests will be rejected.

Authentication

WACM Connect supports HTTP Basic Authentication using your:

  • Username: Your WACM Connect account username

  • Password: Your WACM Connect API key

The Authorization header must be included in each request and contain a base64-encoded string in the following format:

Authorization: Basic <base64-encoded-string>

where:

<base64-encoded-string> = base64(YOUR_USERNAME:YOUR_API_KEY)

Example (using curl):

curl -X GET https://api.wacm.wasabisys.com/resource \
  -H "Authorization: Basic dXNlcm5hbWU6YXBpa2V5MTIzNDU2"

You can generate the base64 string in most terminals, for example:

echo -n 'username:apikey123456' | base64

Authentication With API Clients

If your HTTP client (such as Postman, Python requests, etc.) supports Basic Auth, you can configure it using:

  • Username: Your WACM username

  • Password: Your WACM API key

Example in Python:

import requests
from requests.auth import HTTPBasicAuth

response = requests.get(
    "https://api.wacm.wasabisys.com/resource",
    auth=HTTPBasicAuth('your_username', 'your_api_key')
)
print(response.status_code)
print(response.json())

Response Handling

The following tables show success responses and error responses.

Success Responses

WACM Connect API methods return standard HTTP status codes:

Method

Status Code

Description

GET

200 OK

Data retrieved successfully

POST

201 Created

Resource created

PUT

200 OK

Resource updated

DELETE

204 No Content

Resource deleted

Error Responses

If an error occurs, the API will return an appropriate non-2xx status code and a JSON body describing the error.

Example error response:

{
  "error": "Invalid API key",
  "code": 401
}

Status Code

Meaning

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

500

Internal Server Error