The documentation about the API will help us know what to ask.
The curl statement suggested looks like
curl -H "X-ArchivesSpace-Session: $SESSION" \
'http://localhost:8089/repositories'
Notice there is no “-d” listed. We only need to know the API URL and then add “/repositories” to it. We still need to send along our auth token in the header as normal.