Skip to main content
Log in and use the returned session token for authenticated API calls:
API helpers accept:
  • --url for the base API URL, defaulting to http://localhost/api
  • --session for the X-ArchivesSpace-Session header
  • --query name=value for repeated query parameters
  • --data or --file for JSON request bodies on arbitrary requests
Use api request when you need a path that does not have a named shortcut:

Reference

api login

Log in to ArchivesSpace and print the session response

api request

Call an arbitrary ArchivesSpace API path