openapi: 3.2.0 info: title: Forsta O Auth2 API version: 1.0-beta description: 'Operations tagged OAuth2 across 2 of this provider''s published API definitions: forsta-sample-marketplace-partner-contract-openapi.yml, forsta-sample-marketplace-partner-setup-openapi.yml. Each path carries the servers of the definition it was published in.' servers: - url: https://eks.us-west-2.fvdev.net/smp-partner-service description: Staging Environment - url: https://us-west-2-eks.aws.focusvision.com/smp-partner-service description: Production Environment tags: - name: OAuth2 description: The OAuth2 resources are used to validate authentication tokens to allow communication between the applications. paths: /oauth2/token: post: summary: Client Credentials Access Token tags: - OAuth2 description: This is used to gain an access token to use for the rest of the APIs following the Client Credentials Grant flow of the OAuth2 spec. Authorization used for this endpoint should be of the form `Basic Base64Encode(client_id:client_secret)`. We will use your client_id and client_secret that is set in the apispec endpoint in the partner signup process. security: - BasicAuth: [] operationId: demo.post_token requestBody: content: application/x-www-form-urlencoded: schema: type: object properties: grant_type: type: string enum: - client_credentials responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/response' '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/error' components: schemas: error: type: object properties: error: type: string description: Error code as specified in IETF RFC-6749 Section-5.2 enum: - invalid_request - invalid_client - invalid_grant - unauthorized_client - unsupported_grant_type response: type: object properties: access_token: type: string format: jwt example: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoiSm9obiBEb2UifQ.DjwRE2jZhren2Wt37t5hlVru6Myq4AhpGLiiefF69u8 description: The issued access token token_type: type: string enum: - Bearer description: The type of the access token. expires_in: type: number example: 3600 description: The lifetime in seconds of the access token. securitySchemes: OAuth2: type: oauth2 description: See https://docs.aws.amazon.com/cognito/latest/developerguide/token-endpoint.html flows: clientCredentials: tokenUrl: /oauth2/token/ scopes: {} x-tokenInfoFunc: demo.token_auth BasicAuth: type: http scheme: basic x-basicInfoFunc: demo.basic_auth x-refined-from: - forsta-sample-marketplace-partner-contract-openapi.yml - forsta-sample-marketplace-partner-setup-openapi.yml x-tagGroups: - name: Autoclose tags: - Autoclose - name: Data Input and Output tags: - Data - Data Feed - Response Summary - Modifying Data - Datasources - Datasources Data - Umerge - name: Survey Metadata tags: - Simulated Data - Survey State - Survey Evaluate - Survey Quotas - Survey Files - Survey Warnings - Survey Terms - Survey Subscribers - Survey Users - Survey Tasks - name: Panels tags: - Panel Data - Panel Datapoints - Survey Panels - name: Research Hub tags: - Users - Companies - Categories - Surveys - Panels - Crosstabs - Archives - Archival Reports - API Keys - Usage - Warnings Summary - name: Crosstabs tags: - Crosstabs Configuration - Crosstabs Execution - Crosstabs Nets - Saved Crosstabs - Crosstabs Table Settings - Crosstabs Validation - Crosstabs Rim Weighting - name: Dashboards tags: - Dashboards - name: DQ APIs tags: - DQ-Specific API Calls - MaxDiff API Calls - Discrete Choice Model API Calls - Media Testimonial API Calls - name: Response Summary tags: - Share Link - name: Sample Management tags: - Bounced Emails - Participant Sources - name: Distribution tags: - Email Distribution - SFTP Distribution - Slack Distribution - name: Campaign Manager tags: - Campaigns - Campaign Email Invites - Campaign Exports - Campaign Lists - Shared Campaign Lists - Campaign Sends - Campaign Status Lists - Supression Lists - name: Question Library tags: - Company Element - Company Elements - Survey Elements - Survey Element Report Settings - name: Language Manager tags: - LM Application Data - LM Application Translations - Translation Resources - Translations - Translation Deltas - Translation Reservations - Primary Survey Language - Other Survey Languages - Unused Survey Languages - name: Project Parameters tags: - Available Project Parameters - Saved Project Parameters - Project Parameters Configuration - name: Multi-User Editing tags: - Available Sections - Check Out Section - Check In Section - Sync Section - Section Editor - Abandon Section - Validate Section - name: Video Management tags: - Videos - Watermarked Videos - name: Miscellaneous tags: - System Information - Logic Nodes - Logic Events - CATI - Global Search - Miscellaneous