Skip to main content

API basics

The Archefusion API is a RESTful, JSON-based API that uses standard HTTP methods and requires authentication for all requests. All requests must be made over HTTPS.

Base URL

The base URL for all endpoints is https://dev.api-gateway.archefusion.com. This works for both test and live environments. Your API key determines which environment you are in.

Environment and API keys

Archefusion offers two completely isolated environments: Test and Live. Each of these environments has its own set of keys.
Key typePrefix
Test API keyaf_test_
Test webhook secretaf_whsec_test_
Live API keyaf_live_
Live webhook secretaf_whsec_live_
Use the test keys for development and testing. Switch to live keys when you are ready for production.
See authentication for details on obtaining and managing your API keys.

Content-Type

All requests must include a Content-Type header set to application/json. Requests and response bodies are formatted as JSON.

HTTP methods

Archefusion uses standard HTTP verbs for different actions.
MethodDescription
GETRetrieves data
POSTCreates new resources

HTTP response codes

Archefusion returns standard HTTP response codes to indicate the outcome of each request.
HTTP codeDescription
200The request was processed successfully. However, this doesn’t mean the intended action was successful. You should check the data.status field to confirm the outcome.
201A new resource was created successfully.
400The request was not processed. This occurs when query or body parameters are invalid or a required field is missing.
401The request was not authorized. This occurs when the provided API key is invalid or missing.
404The requested resource does not exist.
500An error occurred on Archefusion’s servers. If you encounter this error, contact [email protected].

Next step

Learn how to authenticate API requests and manage your API keys.