Base URL
https://zjwroygnjeoiyntmyqmk.supabase.co/functions/v1Authentication
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.
/career-pathways-apiGenerate 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
{
"currentRole": "Software Engineer",
"skills": [
"Python",
"JavaScript",
"SQL"
],
"careerGoal": "Product Manager",
"country": "United States",
"language": "en"
}Response
{
"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."
}
]
}/skill-analysis-apiAnalyze 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
{
"currentRole": "Software Engineer",
"skills": [
"Python",
"JavaScript",
"React"
],
"targetRole": "Data Scientist"
}Response
{
"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"
]
}/career-intelligence-apiCareer 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
{
"userId": "uuid-string",
"query": "What skills should I focus on to transition from marketing to UX design?",
"context": {
"currentRole": "Marketing Manager",
"yearsExperience": 5
}
}Response
{
"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"
]
}/submit-outcome-apiSubmit 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
{
"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
{
"success": true,
"id": "uuid-string",
"message": "Outcome submitted successfully"
}/workforce-intelligence-apiWorkforce 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
GET /workforce-intelligence-api?country=US&timeframe=90dResponse
{
"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
}
]
}/issue-api-keyIssue 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
{
"keyName": "Production Integration"
}Response
{
"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."
}