API v1.0 — Live

Build on G — The Workforce Intelligence API

Integrate career intelligence, workforce transition pathways, and labor market data into any platform.

Base URL

url
https://zjwroygnjeoiyntmyqmk.supabase.co/functions/v1

Authentication

All endpoints support two authentication methods:

Individual Users

Pass your session token in the Authorization header.

Authorization: Bearer <token>

Enterprise / Government

Use your API key in the custom header.

X-GWTS-API-Key: <api_key>

Rate limit: 100 requests/minute per API key.

POST/career-pathways-api

Generate Career Pathways

Uses AI to generate 3 career transition pathways based on a user's current role, skills, and career goal. Results are saved to the career_pathways table for authenticated users.

Auth: Bearer token or X-GWTS-API-Key

Request Body

json
{
  "currentRole": "Software Engineer",
  "skills": [
    "Python",
    "JavaScript",
    "SQL"
  ],
  "careerGoal": "Product Manager",
  "country": "United States",
  "language": "en"
}

Response

json
{
  "pathways": [
    {
      "current_role": "Software Engineer",
      "pathway_steps": [
        "Technical Product Analyst",
        "Associate Product Manager",
        "Product Manager"
      ],
      "match_percentage": 92,
      "salary_range": "$115,000 – $165,000",
      "growth_outlook": "High Growth",
      "fit_reason": "Your technical background enables effective communication with engineering teams and technical requirements gathering."
    }
  ]
}
POST/skill-analysis-api

Analyze Skills

Identifies transferable skills and skill gaps between a current role and a target role. Returns actionable insights including overall readiness score and recommended learning paths.

Auth: Bearer token or X-GWTS-API-Key

Request Body

json
{
  "currentRole": "Software Engineer",
  "skills": [
    "Python",
    "JavaScript",
    "React"
  ],
  "targetRole": "Data Scientist"
}

Response

json
{
  "transferableSkills": [
    {
      "skill": "Python",
      "relevance": "high",
      "description": "Core language for data science workflows"
    }
  ],
  "skillGaps": [
    {
      "skill": "Statistics",
      "priority": "critical",
      "learningPath": "Take an intro statistics course"
    }
  ],
  "overallReadiness": 65,
  "summary": "Strong programming foundation. Focus on statistics and ML fundamentals.",
  "recommendedActions": [
    "Complete a statistics course",
    "Learn scikit-learn",
    "Build a portfolio project"
  ]
}
POST/career-intelligence-api

Career Intelligence (G Chat)

The G chat endpoint. Takes a user query and their profile context, returning G's AI-powered career intelligence response with suggestions and action items.

Auth: Bearer token or X-GWTS-API-Key

Request Body

json
{
  "userId": "uuid-string",
  "query": "What skills should I focus on to transition from marketing to UX design?",
  "context": {
    "currentRole": "Marketing Manager",
    "yearsExperience": 5
  }
}

Response

json
{
  "response": "Great question! Your marketing background gives you strong user research and empathy skills...",
  "suggestions": [
    "Take a UX bootcamp",
    "Build a portfolio with 3 case studies"
  ],
  "actionItems": [
    "Complete Google UX Design Certificate",
    "Redesign a product you use daily"
  ],
  "relatedTools": [
    "skill-analysis",
    "career-pathways"
  ]
}
POST/submit-outcome-api

Submit Outcome

Saves anonymized career transition outcome data. This is the most critical endpoint for building workforce intelligence — every submission strengthens G's data moat.

Auth: Bearer token (required)

Request Body

json
{
  "originalRole": "Software Engineer",
  "targetRole": "Product Manager",
  "transitionSuccessful": true,
  "timeToTransitionMonths": 8,
  "salaryBefore": 120000,
  "salaryAfter": 145000,
  "whatHelped": "Networking and a PM bootcamp",
  "whatWasDifficult": "Getting the first PM interview"
}

Response

json
{
  "success": true,
  "id": "uuid-string",
  "message": "Outcome submitted successfully"
}
GET/workforce-intelligence-api

Workforce Intelligence

Returns anonymized aggregate workforce transition data including most common pathways, average transition times, salary changes, and success rates. Filter by country, region, industry, and timeframe.

Auth: X-GWTS-API-Key (enterprise/government)

Query Parameters

json
GET /workforce-intelligence-api?country=US&timeframe=90d

Response

json
{
  "summary": {
    "totalTransitions": 1250,
    "successfulTransitions": 980,
    "successRate": 78,
    "timeframe": "90d"
  },
  "topPathways": [
    {
      "pathway": "Software Engineer → Product Manager",
      "count": 45
    },
    {
      "pathway": "Accountant → Data Analyst",
      "count": 38
    }
  ],
  "averageTimeToTransitionMonths": 6,
  "averageSalaryChange": 15000,
  "topHelpfulFactors": [
    {
      "factor": "Online courses and certifications",
      "count": 320
    }
  ]
}
POST/issue-api-key

Issue API Key

Generates a unique API key for enterprise and government accounts. The key is shown once and cannot be retrieved again. Store it securely.

Auth: Bearer token (enterprise/government only)

Request Body

json
{
  "keyName": "Production Integration"
}

Response

json
{
  "success": true,
  "apiKey": "gwts_aBcDeFgH_iJkLmNoP_qRsTuVwX_yZaBcDeF",
  "id": "uuid-string",
  "keyName": "Production Integration",
  "createdAt": "2026-03-25T00:00:00Z",
  "expiresAt": "2027-03-25T00:00:00Z",
  "message": "Store this API key securely. It will not be shown again."
}

Get API Access

Enterprise and government organizations can apply for API access to integrate G's workforce intelligence into their existing platforms and systems.