API REFERENCE

Access Types, Packages & Lists

10 endpoints discovered from this archive’s backend.

Set these variables first
export ALPHIE_URL="https://YOUR-ALPHIE-HOST"
export ALPHIE_TOKEN="PASTE_YOUR_API_TOKEN_HERE"
# Requires a certificate trusted by your machine. For test-only self-signed certificates,
# use curl --cacert /path/to/alphie.crt (preferred) rather than disabling TLS verification.

Most authenticated endpoints accept Authorization: Bearer $ALPHIE_TOKEN. Endpoints can still require administrator permissions or particular roles. API tokens must be provisioned through an authorized Alphie account; don't put secrets in playbooks, logs, or browser-side forms.

GET/api/access_packages

List access packages

curl --fail-with-body -sS -X GET "$ALPHIE_URL/api/access_packages" \
  -H "Authorization: Bearer $ALPHIE_TOKEN"

POST/api/access_packages

Create access package

curl --fail-with-body -sS -X POST "$ALPHIE_URL/api/access_packages" \
  -H "Authorization: Bearer $ALPHIE_TOKEN" \n  -H "Content-Type: application/json" \n  --data-binary @request.json

Body example: supply a request.json file matching this endpoint’s request model. Consult $ALPHIE_URL/openapi.json for required fields.

DELETE/api/access_packages/{id}

Delete access package

curl --fail-with-body -sS -X DELETE "$ALPHIE_URL/api/access_packages/${ID}" \
  -H "Authorization: Bearer $ALPHIE_TOKEN"

GET/api/access_packages/{id}

Get access package

curl --fail-with-body -sS -X GET "$ALPHIE_URL/api/access_packages/${ID}" \
  -H "Authorization: Bearer $ALPHIE_TOKEN"

PUT/api/access_packages/{id}

Update access package

curl --fail-with-body -sS -X PUT "$ALPHIE_URL/api/access_packages/${ID}" \
  -H "Authorization: Bearer $ALPHIE_TOKEN" \n  -H "Content-Type: application/json" \n  --data-binary @request.json

Body example: supply a request.json file matching this endpoint’s request model. Consult $ALPHIE_URL/openapi.json for required fields.

GET/api/access_packages/{id}/decrypted

Get decrypted package

curl --fail-with-body -sS -X GET "$ALPHIE_URL/api/access_packages/${ID}/decrypted" \
  -H "Authorization: Bearer $ALPHIE_TOKEN"

GET/api/access_types

List access types

curl --fail-with-body -sS -X GET "$ALPHIE_URL/api/access_types" \
  -H "Authorization: Bearer $ALPHIE_TOKEN"

POST/api/access_types

Create access type

curl --fail-with-body -sS -X POST "$ALPHIE_URL/api/access_types" \
  -H "Authorization: Bearer $ALPHIE_TOKEN" \n  -H "Content-Type: application/json" \n  --data-binary @request.json

Body example: supply a request.json file matching this endpoint’s request model. Consult $ALPHIE_URL/openapi.json for required fields.

DELETE/api/access_types/{id}

Delete access type

curl --fail-with-body -sS -X DELETE "$ALPHIE_URL/api/access_types/${ID}" \
  -H "Authorization: Bearer $ALPHIE_TOKEN"

PUT/api/access_types/{id}

Update access type

curl --fail-with-body -sS -X PUT "$ALPHIE_URL/api/access_types/${ID}" \
  -H "Authorization: Bearer $ALPHIE_TOKEN" \n  -H "Content-Type: application/json" \n  --data-binary @request.json

Body example: supply a request.json file matching this endpoint’s request model. Consult $ALPHIE_URL/openapi.json for required fields.