GitScrum / Docs

Workspaces

List and retrieve workspaces. Get workspace details, stats, and configuration.

REST API — All endpoints require authentication via Bearer token. Include Authorization: Bearer {token} in every request. Tokens are managed in GitScrum Settings → API. Base URL: https://services.gitscrum.com — All request paths in this documentation are relative to this base URL.

Workspaces are the top-level container in GitScrum. Every project, member, and resource belongs to a workspace.

List workspaces

GET /companies

Returns all workspaces the authenticated user belongs to.

curl -X GET https://services.gitscrum.com/companies \
  -H "Authorization: Bearer {token}" \
  -H "Content-Type: application/json"

Response 200 OK

{
  "data": [
    {
      "slug": "acme-corp",
      "name": "Acme Corp",
      "logo": "https://cdn.gitscrum.com/logos/acme.png",
      "header_logo": "https://cdn.gitscrum.com/logos/acme-header.png",
      "header_color": "#1a1a2e",
      "favicon": "https://cdn.gitscrum.com/favicons/acme.ico",
      "owner": {
        "name": "Jane Smith",
        "username": "janesmith"
      },
      "settings": {
        "timezone": "America/New_York",
        "language": "en"
      }
    }
  ]
}

Get workspace

GET /companies/{slug}

Returns full workspace details.

Path parameters

ParameterTypeRequiredDescription
slugstringYesWorkspace identifier
curl -X GET https://services.gitscrum.com/companies/acme-corp \
  -H "Authorization: Bearer {token}" \
  -H "Content-Type: application/json"

Response 200 OK

{
  "data": {
    "slug": "acme-corp",
    "name": "Acme Corp",
    "logo": "https://cdn.gitscrum.com/logos/acme.png",
    "header_logo": "https://cdn.gitscrum.com/logos/acme-header.png",
    "header_color": "#1a1a2e",
    "favicon": "https://cdn.gitscrum.com/favicons/acme.ico",
    "owner": {
      "name": "Jane Smith",
      "username": "janesmith"
    },
    "settings": {
      "timezone": "America/New_York",
      "language": "en"
    }
  }
}

Create workspace

POST /companies

Creates a new workspace.

Request body

FieldTypeRequiredDescription
namestringYesWorkspace name
curl -X POST https://services.gitscrum.com/companies \
  -H "Authorization: Bearer {token}" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "New Workspace"
  }'

Update workspace

PUT /companies/{slug}

Updates workspace settings.

Path parameters

ParameterTypeRequiredDescription
slugstringYesWorkspace identifier

Request body

FieldTypeRequiredDescription
namestringNoWorkspace name
curl -X PUT https://services.gitscrum.com/companies/acme-corp \
  -H "Authorization: Bearer {token}" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Acme Corporation"
  }'

Delete workspace

DELETE /companies/{slug}

Permanently deletes a workspace and all its data. This action cannot be undone.

Path parameters

ParameterTypeRequiredDescription
slugstringYesWorkspace identifier
curl -X DELETE https://services.gitscrum.com/companies/acme-corp \
  -H "Authorization: Bearer {token}"

POST /companies/{slug}/logo

Uploads or replaces the workspace logo.

Path parameters

ParameterTypeRequiredDescription
slugstringYesWorkspace identifier

Request body (multipart/form-data)

FieldTypeRequiredDescription
logofileYesImage file (PNG, JPG)

DELETE /companies/{slug}/logo

Removes the workspace logo.

Path parameters

ParameterTypeRequiredDescription
slugstringYesWorkspace identifier

Workspace stats

GET /companies/stats

Returns workspace-level statistics.

curl -X GET https://services.gitscrum.com/companies/stats \
  -H "Authorization: Bearer {token}" \
  -H "Content-Type: application/json"

Response 200 OK

{
  "data": {
    "projects_count": 12,
    "members_count": 28,
    "tasks_count": 847,
    "completed_tasks_count": 623,
    "active_sprints_count": 3
  }
}

My role

GET /companies/{slug}/my-role

Returns the authenticated user's role in the workspace.

Path parameters

ParameterTypeRequiredDescription
slugstringYesWorkspace identifier
curl -X GET https://services.gitscrum.com/companies/acme-corp/my-role \
  -H "Authorization: Bearer {token}"

Field reference

FieldTypeDescription
slugstringUnique workspace identifier
namestringWorkspace display name
logostringLogo image URL
header_logostringHeader logo image URL
header_colorstringHeader background color (hex)
faviconstringFavicon URL
ownerobjectWorkspace owner (name, username)
settingsobjectWorkspace configuration (timezone, language)
statsobjectAggregate statistics (when requested)