M1 Hub
Back to user guides

SpaceM1 API User Guide

Getting started with SpaceM1 API

1. Generating an API token

You can generate an API token on the RetroScore Settings Page.

You may paste a token value into the field below or its equivalent in the sidebar to use it across the documentation examples.

2. Usage with curl

curl http://localhost:2222/api/v2/spacem1-search -X POST \
  -H "Authorization: ApiToken-v1 YOUR_API_TOKEN"  \
  -H "Content-Type: application/json" \
  -d '{"targets": ["COC"]}'

Replace YOUR_API_TOKEN with the API token generated in step 1.