Applications (Private Beta)
These endpoints are in beta currently. Please reach out for application requests.
Check if an Organization is subscribed to an Application
GET Request: https://api.autoznetwork.com/v1/applications/{APPLICATION_SLUG}
CURL
AUTOZNETWORK_TOKEN="your API token"
AUTOZNETWORK_ORGANIZATION_ID="your organization id"
AUTOZNETWORK_APPLICATION_SLUG="your application slug"
curl -X GET https://api.autoznetwork.com/v1/applications/$AUTOZNETWORK_APPLICATION_SLUG \
-H "Authorization: Bearer $AUTOZNETWORK_TOKEN" \
-H "X-AutozNetwork-Organization-Id: $AUTOZNETWORK_ORGANIZATION_ID" \
-H 'Accept: application/json'
Get a Subscription Quote for an Application
In order to subscribe an organization to an application you must first obtain a quote key for the authorized user. The key will be required to make the POST request to the subscription endpoint.
POST Request: https://api.autoznetwork.com/v1/applications/{APPLICATION_SLUG}/quote
CURL
AUTOZNETWORK_TOKEN="your API token"
AUTOZNETWORK_ORG_ID="your organization id"
AUTOZNETWORK_APPLICATION_ID="your application id"
curl -X POST https://api.autoznetwork.com/v1/applications/$AUTOZNETWORK_APPLICATION_ID/quote \
-H "Authorization: Bearer $AUTOZNETWORK_TOKEN" \
-H "X-AutozNetwork-Organization-Id: $AUTOZNETWORK_ORG_ID" \
-H 'Accept: application/json'
Subscribe an Organization to an Application
In order to subscribe an organization to an application you must first obtain a quote key for the authorized user. The key will be required to make the POST request to the subscription endpoint.
POST Request: https://api.autoznetwork.com/v1/applications/{APPLICATION_SLUG}/subscribe
CURL
AUTOZNETWORK_TOKEN="your API token"
AUTOZNETWORK_ORG_ID="your organization id"
AUTOZNETWORK_APPLICATION_ID="your application id"
AUTOZNETWORK_APPLICATION_QUOTE_KEY="your application quote key"
curl -X POST https://api.autoznetwork.com/v1/applications/$AUTOZNETWORK_APPLICATION_ID/subscribe \
-H "Authorization: Bearer $AUTOZNETWORK_TOKEN" \
-H "X-AutozNetwork-Organization-Id: $AUTOZNETWORK_ORG_ID" \
-H 'Accept: application/json' \
-d '{
"quote_key": "\'$AUTOZNETWORK_APPLICATION_QUOTE_KEY'\"
}'