openapi: 3.1.0 info: title: Gainsight CS Bulk Accounts Company Team API description: The Gainsight Bulk API is an asynchronous connector that automates insert or update of large data volumes from CSV files into Gainsight standard and custom objects, with rate limits of 10 calls per hour and 100 per day. version: '1.0' contact: name: Gainsight Support url: https://support.gainsight.com email: support@gainsight.com termsOfService: https://www.gainsight.com/terms-of-service/ servers: - url: https://{domain}.gainsightcloud.com/v1 description: Gainsight CS Production variables: domain: default: customer description: Customer-specific domain prefix security: - apiKey: [] tags: - name: Company Team description: Manage company team records paths: /companyteam: post: operationId: upsertCompanyTeam summary: Gainsight Upsert company team records description: Insert or update company team records that associate Gainsight users with company accounts. tags: - Company Team requestBody: required: true content: application/json: schema: type: object required: - records properties: records: type: array items: $ref: '#/components/schemas/CompanyTeamRecord' responses: '200': description: Records upserted content: application/json: schema: $ref: '#/components/schemas/ApiResponse' '400': $ref: '#/components/responses/BadRequest' '401': $ref: '#/components/responses/Unauthorized' /companyteam/search: post: operationId: searchCompanyTeam summary: Gainsight Search company team records description: Search for company team records using filter criteria. tags: - Company Team requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/SearchRequest' responses: '200': description: Results returned content: application/json: schema: type: object properties: result: type: boolean data: type: object properties: records: type: array items: $ref: '#/components/schemas/CompanyTeamRecord' totalCount: type: integer '400': $ref: '#/components/responses/BadRequest' '401': $ref: '#/components/responses/Unauthorized' components: responses: BadRequest: description: Invalid request body or parameters Unauthorized: description: Authentication failed or access key is missing schemas: CompanyTeamRecord: type: object properties: Gsid: type: string description: Record identifier CompanyId: type: string description: Company Gsid UserId: type: string description: Gainsight user Gsid TeamRole: type: string description: Team role (e.g., CSM, Executive Sponsor) IsPrimary: type: boolean description: Whether this is the primary team member ApiResponse: type: object properties: result: type: boolean errorCode: type: string errorDesc: type: string requestId: type: string SearchRequest: type: object properties: select: type: array items: type: string where: type: object properties: conditions: type: array items: type: object properties: name: type: string value: {} operator: type: string expression: type: string limit: type: integer offset: type: integer securitySchemes: apiKey: type: apiKey name: accessKey in: header description: Gainsight CS REST API access key externalDocs: description: Bulk API Documentation url: https://support.gainsight.com/gainsight_nxt/API_and_Developer_Docs/Bulk_API/Gainsight_Bulk_REST_APIs