Skip to main content
Stringhive Hives

API: Hives

List your Hives

GET /api/hives

Returns all Hives accessible with the current token. Requires read ability.

curl https://www.stringhive.com/api/hives \
  -H "Authorization: Bearer YOUR_TOKEN"

Response:

{
  "data": [
    {
      "name": "My App",
      "slug": "my-app",
      "source_locale": "en",
      "string_count": 1245,
      "locales": ["de", "fr", "es"]
    }
  ]
}

Get Hive stats

GET /api/hives/{slug}

Returns translation completion stats per locale. Requires read ability.

curl https://www.stringhive.com/api/hives/my-app \
  -H "Authorization: Bearer YOUR_TOKEN"

Response:

{
  "slug": "my-app",
  "name": "My App",
  "source_locale": "en",
  "string_count": 1245,
  "locales": {
    "de": {
      "translated": 1200,
      "approved": 1100,
      "total": 1245
    },
    "fr": {
      "translated": 980,
      "approved": 960,
      "total": 1245
    }
  }
}

Errors:

Status Reason
404 No Hive with that slug, or your token can't access it