Step 1: Get API Key

The API key is the only credential required to access Gitruck Cloud public APIs. You first copy it from the Dashboard, then pass it directly in the Authorization header.

Get Your API Key

  1. Visit Gitruck Cloud and sign in.
  2. Open the Dashboard from the top navigation.
  3. Locate the "API Key" section and click Show.
  4. Copy the API key and store it securely.

⚠️ Warning: The current backend expects Authorization: API_KEY. Do not prepend Bearer.

Correct Authentication Format

Authorization: YOUR_API_KEY
curl -X POST https://api.ai-mcn.tv:10000/base/file/upload \
  -H "Authorization: YOUR_API_KEY" \
  -F "file=@/path/to/file.mp4"

Reset Your API Key

If the key is exposed:

  1. Go back to the Dashboard.
  2. Find the "API Key" section.
  3. Click Reset.
  4. Replace the old key everywhere in your integration.

FAQ

Q: Why do I still get 6502?

Check these three items first:

  • The header name must be Authorization
  • The value must be the raw API key, not Bearer YOUR_API_KEY
  • The key must not contain extra spaces, line breaks, or an outdated value

Q: Does the API key expire?

Based on the current backend implementation, the API key itself does not expire. Failures are more often caused by an invalid key, a reset key, or insufficient balance / quota.

Next Steps