{
  "openapi": "3.1.0",
  "info": {
    "title": "Roster API",
    "description": "API for searching and discovering world-class designers. Use this API to find designers by skill, location, company, or role. All designers on Roster have opted in to be discoverable via approved assistants and integrations.",
    "version": "1.0.0",
    "contact": {
      "name": "Roster",
      "url": "https://roster.so"
    }
  },
  "servers": [
    {
      "url": "https://www.roster.so/api/v1",
      "description": "Production API"
    }
  ],
  "paths": {
    "/designers": {
      "get": {
        "operationId": "searchDesigners",
        "summary": "Search for designers",
        "description": "Search the Roster directory for designers. Filter by category (product, brand, graphic, motion, 3d, ux), location, company, or free-text query. Returns structured designer profiles with current role, previous experience, portfolio links, and direct profile URLs.",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "description": "Free-text search query. Searches name, description, role title, and company.",
            "schema": { "type": "string" },
            "example": "product designer"
          },
          {
            "name": "category",
            "in": "query",
            "description": "Filter by designer category/specialty.",
            "schema": {
              "type": "string",
              "enum": ["product", "brand", "graphic", "motion", "3d", "ux"]
            },
            "example": "product"
          },
          {
            "name": "location",
            "in": "query",
            "description": "Filter by location. Partial match supported (e.g., 'US', 'London', 'Remote').",
            "schema": { "type": "string" },
            "example": "San Francisco"
          },
          {
            "name": "company",
            "in": "query",
            "description": "Filter by current or previous company. Partial match supported.",
            "schema": { "type": "string" },
            "example": "Stripe"
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of results to return (max 100).",
            "schema": { "type": "integer", "default": 50, "maximum": 100 },
            "example": 10
          },
          {
            "name": "offset",
            "in": "query",
            "description": "Number of results to skip for pagination.",
            "schema": { "type": "integer", "default": 0 },
            "example": 0
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response with designer list",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": { "type": "boolean" },
                    "data": {
                      "type": "array",
                      "items": { "$ref": "#/components/schemas/Designer" }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "total": {
                          "type": "integer",
                          "description": "Total matching results"
                        },
                        "limit": { "type": "integer" },
                        "offset": { "type": "integer" },
                        "has_more": { "type": "boolean" }
                      }
                    }
                  }
                },
                "example": {
                  "success": true,
                  "data": [
                    {
                      "id": "abc123",
                      "slug": "john-doe",
                      "name": "John Doe",
                      "description": "Designing at the intersection of craft and systems.",
                      "website": "https://johndoe.design",
                      "portfolio_preview": "https://example.com/preview.jpg",
                      "category": "product",
                      "location": "San Francisco, US",
                      "current_role": {
                        "title": "Senior Product Designer",
                        "company": "Stripe",
                        "company_url": "https://stripe.com"
                      },
                      "previous_roles": [
                        {
                          "title": "Product Designer",
                          "company": "Figma",
                          "company_url": null
                        }
                      ],
                      "profile_url": "https://roster.so/designer/john-doe"
                    }
                  ],
                  "meta": {
                    "total": 1,
                    "limit": 50,
                    "offset": 0,
                    "has_more": false
                  }
                }
              }
            }
          },
          "500": {
            "description": "Server error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": { "type": "boolean" },
                    "error": { "type": "string" }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Designer": {
        "type": "object",
        "description": "A designer profile from Roster",
        "properties": {
          "id": { "type": "string", "description": "Unique identifier" },
          "slug": { "type": "string", "description": "URL-friendly slug" },
          "name": { "type": "string", "description": "Designer's full name" },
          "description": {
            "type": "string",
            "description": "Short bio or tagline"
          },
          "website": {
            "type": "string",
            "format": "uri",
            "description": "Personal portfolio website"
          },
          "portfolio_preview": {
            "type": "string",
            "format": "uri",
            "description": "Preview image of their portfolio"
          },
          "category": {
            "type": "string",
            "enum": ["product", "brand", "graphic", "motion", "3d", "ux"],
            "description": "Primary design specialty"
          },
          "location": {
            "type": "string",
            "description": "Location (city, country)"
          },
          "current_role": {
            "type": "object",
            "nullable": true,
            "properties": {
              "title": { "type": "string" },
              "company": { "type": "string" },
              "company_url": {
                "type": "string",
                "format": "uri",
                "nullable": true
              }
            }
          },
          "previous_roles": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "title": { "type": "string" },
                "company": { "type": "string" },
                "company_url": {
                  "type": "string",
                  "format": "uri",
                  "nullable": true
                }
              }
            }
          },
          "profile_url": {
            "type": "string",
            "format": "uri",
            "description": "Direct link to Roster profile"
          }
        }
      }
    }
  }
}
