> ## Documentation Index
> Fetch the complete documentation index at: https://api.onlysocial.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Set return URLs

> Replaces your return URLs. Up to 20 HTTPS URLs, without credentials, query strings or fragments. Matching is exact, including the path and any trailing slash. Removing a URL also stops unfinished sessions from completing against it.



## OpenAPI

````yaml /api-reference/partner.openapi.json put /partner/channel-connect/settings
openapi: 3.1.0
info:
  title: Partner API
  version: 1.0.0
  description: >-
    Provision your customers, sign them in with single sign-on, issue their
    workspace API keys and connect their messaging channels. Authenticated by
    your partner key as `X-API-KEY`, from your backend only.
servers:
  - url: https://app.onlysocial.io/api
    description: OnlySocial
security:
  - partnerKey: []
tags:
  - name: Customers
    description: Create or refresh a customer's account and workspace.
  - name: Single sign-on
    description: Swap a token signed with your SSO secret for a one-time sign-in link.
  - name: Workspace API keys
    description: Issue, list and revoke the `osk_` keys of a workspace you provisioned.
  - name: Channel Connect
    description: Hosted links that connect a customer's own messaging channels.
paths:
  /partner/channel-connect/settings:
    put:
      tags:
        - Channel Connect
      summary: Set return URLs
      description: >-
        Replaces your return URLs. Up to 20 HTTPS URLs, without credentials,
        query strings or fragments. Matching is exact, including the path and
        any trailing slash. Removing a URL also stops unfinished sessions from
        completing against it.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - return_urls
              properties:
                return_urls:
                  type: array
                  maxItems: 20
                  items:
                    type: string
                    format: uri
                    maxLength: 2048
                  example:
                    - https://app.acmedealers.test/integrations/callback
      responses:
        '200':
          description: Saved
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    type: object
                    properties:
                      return_urls:
                        type: array
                        items:
                          type: string
        '401':
          $ref: '#/components/responses/Unauthenticated'
        '422':
          $ref: '#/components/responses/ValidationFailed'
components:
  responses:
    Unauthenticated:
      description: Missing or invalid partner key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            success: false
            message: Invalid or inactive API key.
    ValidationFailed:
      description: A field failed validation.
      content:
        application/json:
          schema:
            type: object
            properties:
              success:
                type: boolean
                example: false
              message:
                type: string
                example: Validation failed.
              errors:
                type: object
                additionalProperties:
                  type: array
                  items:
                    type: string
  schemas:
    Error:
      type: object
      properties:
        success:
          type: boolean
          example: false
        message:
          type: string
        error_code:
          type: string
  securitySchemes:
    partnerKey:
      type: apiKey
      in: header
      name: X-API-KEY
      description: Your partner API key, `pk_…`. Backend only.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.