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

# Find your partner account

> Returns the partner (nearly always one) that the signed-in account administers, with the id every other
partner route asks for and the standing it is in: `active`, `inactive` (not activated yet), `suspended`
(paused, with the reason Widgetic gave), `payment_arrears` (a contract invoice is past its due date and
unpaid, since `overdueSince`; the partner is stopped until it is paid), `winding_down` (the partnership has
ended and nothing can be changed any more) or `closed` (the wind-down is over). Each partner says where its
partnership is on the way to its end in `partnership`. A partner API key (`wgt_prt_`) is a
key of the partner's home workspace and acts as the account that administers the partner, so it reads its own
partner here.

An account that administers no partner is not refused: it gets `standing: not_a_partner` and an empty
list, so a dashboard can tell "this is not a partner account" from "something failed".

The call stays open while the partner is paused, not yet active, in payment arrears, winding down or closed
(to the owner signed in on widgetic.com; a key is refused once the partnership is closed): that is when its
dashboard has to say why.




## OpenAPI

````yaml /openapi/widgetic-api-public.json get /partners/mine
openapi: 3.0.0
info:
  title: Widgetic API
  version: 1.0.0
  description: >-
    Create, publish and embed Widgetic widgets from your own code. Every request
    goes to `https://api.widgetic.com/v1` over HTTPS, with an API key as a
    bearer token.
  license:
    name: Widgetic Integration License
    url: https://docs.widgetic.com/resources/license
  termsOfService: https://widgetic.com/legal/terms
  contact:
    name: Widgetic developer support
    url: https://docs.widgetic.com/docs/introduction#need-help
servers:
  - url: https://api.widgetic.com/v1
    description: Production server
security: []
tags:
  - name: Widgets
    description: >-
      The reusable pieces compositions are made from. The widgets of your
      account are your own library.
  - name: Compositions
    description: >-
      A widget set up for one place: its content, design and embed settings, and
      what visitors sent to it.
  - name: Canvases
    description: >-
      The editing surface where a widget is designed and configured. A canvas
      holds one widget.
  - name: Workflows
    description: >-
      Compositions chained together, with filters that decide which one a
      visitor sees next.
  - name: A/B Testing
    description: >-
      Show two to four versions of a composition to different visitors, and see
      which one reaches the goal you chose.
  - name: Translations
    description: >-
      Copies of a composition in other languages, translated by a language
      model, and the views each language gets.
  - name: Uploads
    description: The files a workspace keeps, and the limits on what it accepts.
  - name: Brand Kit
    description: >-
      The colors, fonts, icons, corner radius and style notes every widget your
      account makes is generated with.
  - name: Tokens
    description: >-
      Check which account and workspace an API key belongs to, and what it may
      do.
  - name: Users
    description: The adapter connections of an account.
  - name: Credits
    description: The credits an account holds, and the ledger of how they were spent.
  - name: Organizations
    description: >-
      The websites a workspace lets its widgets appear on, the API keys of a
      workspace and the translations made in it.
  - name: Operations
    description: Follow work that carries on after the response that started it.
  - name: Partners
    description: >-
      Run Widgetic for your own customers: contract, billing, presets, storage,
      notifications, analytics and embeds. These endpoints need a partner key.
  - name: Managed Users
    description: >-
      The customers of a partner, with their editor sessions, limits and usage.
      Only partners can make and work with managed users, with an active partner
      API key.
  - name: Invoices
    description: The invoices issued to a partner.
  - name: Entitlements
    description: What a partner and its managed users are entitled to.
  - name: Public Embed
    description: >-
      What a published widget calls from a visitor's browser. These endpoints
      take no key.
externalDocs:
  description: Widgetic developer documentation
  url: https://docs.widgetic.com
paths:
  /partners/mine:
    get:
      tags:
        - Partners
      summary: Find the partner you administer
      description: >
        Returns the partner (nearly always one) that the signed-in account
        administers, with the id every other

        partner route asks for and the standing it is in: `active`, `inactive`
        (not activated yet), `suspended`

        (paused, with the reason Widgetic gave), `payment_arrears` (a contract
        invoice is past its due date and

        unpaid, since `overdueSince`; the partner is stopped until it is paid),
        `winding_down` (the partnership has

        ended and nothing can be changed any more) or `closed` (the wind-down is
        over). Each partner says where its

        partnership is on the way to its end in `partnership`. A partner API key
        (`wgt_prt_`) is a

        key of the partner's home workspace and acts as the account that
        administers the partner, so it reads its own

        partner here.


        An account that administers no partner is not refused: it gets
        `standing: not_a_partner` and an empty

        list, so a dashboard can tell "this is not a partner account" from
        "something failed".


        The call stays open while the partner is paused, not yet active, in
        payment arrears, winding down or closed

        (to the owner signed in on widgetic.com; a key is refused once the
        partnership is closed): that is when its

        dashboard has to say why.
      operationId: getMyPartners
      responses:
        '200':
          description: The partners the account administers, and the account's standing
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MyPartnersResponse'
        '401':
          description: The API key or session is missing or invalid
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: The API key does not carry the `partner:read` scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - partnerAuth: []
      x-codeSamples:
        - lang: bash
          label: cURL
          source: |-
            curl --request GET \
              --url 'https://api.widgetic.com/v1/partners/mine' \
              --header "Authorization: Bearer $WIDGETIC_API_KEY"
        - lang: typescript
          label: TypeScript
          source: |-
            import { PartnersApi } from '@widgetic/api-sdk-ts';

            const partnersApi = new PartnersApi(process.env.WIDGETIC_API_KEY!);

            const result = await partnersApi.getMyPartners();
            console.log(result);
        - lang: python
          label: Python
          source: >-
            import os


            import api_sdk_py


            configuration =
            api_sdk_py.Configuration(access_token=os.environ["WIDGETIC_API_KEY"])


            with api_sdk_py.ApiClient(configuration) as api_client:
                partners_api = api_sdk_py.PartnersApi(api_client)
                result = partners_api.get_my_partners()
                print(result)
        - lang: go
          label: Go
          source: "package main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\t\"os\"\n\n\twidgetic \"github.com/widgetic/api-sdk-go\"\n)\n\nfunc main() {\n\tctx := context.WithValue(context.Background(), widgetic.ContextAccessToken, os.Getenv(\"WIDGETIC_API_KEY\"))\n\tclient := widgetic.NewAPIClient(widgetic.NewConfiguration())\n\n\tresult, _, err := client.PartnersAPI.GetMyPartners(ctx).Execute()\n\tif err != nil {\n\t\tfmt.Fprintln(os.Stderr, err)\n\t\tos.Exit(1)\n\t}\n\tfmt.Println(result)\n}"
        - lang: java
          label: Java
          source: |-
            import com.widgetic.api.ApiClient;
            import com.widgetic.api.ApiException;
            import com.widgetic.api.Configuration;
            import com.widgetic.api.api.PartnersApi;

            public class Example {
                public static void main(String[] args) throws ApiException {
                    ApiClient client = Configuration.getDefaultApiClient();
                    client.setBearerToken(System.getenv("WIDGETIC_API_KEY"));

                    PartnersApi partnersApi = new PartnersApi(client);

                    var result = partnersApi.getMyPartners();
                    System.out.println(result);
                }
            }
        - lang: csharp
          label: C#
          source: |-
            using System;
            using Widgetic.ApiSdk.Cs.Api;
            using Widgetic.ApiSdk.Cs.Client;

            var configuration = new Configuration
            {
                AccessToken = Environment.GetEnvironmentVariable("WIDGETIC_API_KEY")!,
            };
            var partnersApi = new PartnersApi(configuration);

            var result = partnersApi.GetMyPartners();
            Console.WriteLine(result);
        - lang: ruby
          label: Ruby
          source: |-
            require 'api-sdk-rb'

            ApiSdkRb.configure do |config|
              config.access_token = ENV['WIDGETIC_API_KEY']
            end

            partners_api = ApiSdkRb::PartnersApi.new

            result = partners_api.get_my_partners()
            puts result
        - lang: php
          label: PHP
          source: >-
            <?php


            require_once __DIR__ . '/vendor/autoload.php';


            use WidgeticApi\Api\PartnersApi;

            use WidgeticApi\Configuration;


            $config =
            Configuration::getDefaultConfiguration()->setAccessToken(getenv('WIDGETIC_API_KEY'));

            $partnersApi = new PartnersApi(new GuzzleHttp\Client(), $config);


            $result = $partnersApi->getMyPartners();

            print_r($result);
        - lang: bash
          label: CLI
          source: widgetic api partners get-my-partners
components:
  schemas:
    MyPartnersResponse:
      type: object
      required:
        - success
        - data
      properties:
        success:
          type: boolean
          description: Always `true` on a success.
          example: true
        data:
          $ref: '#/components/schemas/MyPartners'
        meta:
          $ref: '#/components/schemas/ResponseMeta'
    ErrorResponse:
      type: object
      required:
        - success
        - message
        - error
      additionalProperties: true
      properties:
        success:
          type: boolean
          description: Always `false` on a failure.
          example: false
        message:
          type: string
          description: The same text as `error.message`, for a caller that reads one line.
        error:
          $ref: '#/components/schemas/ErrorDetail'
    MyPartners:
      type: object
      required:
        - standing
        - overdueSince
        - partners
      properties:
        standing:
          type: string
          enum:
            - not_a_partner
            - inactive
            - active
            - suspended
            - payment_arrears
            - winding_down
            - closed
          description: >
            The standing of the account as a whole, the word every gate reads:
            `not_a_partner` when the account administers no partner; otherwise
            `active` when any of its partners is in force, else
            `payment_arrears` when the partners that are active each have a
            contract invoice that is past its due date and unpaid, else
            `suspended` when any is paused, else `inactive`. `payment_arrears`
            is not set by anybody: it stops the same things a pause stops
            (billing, invoices, credits and the other routes a partner needs to
            pay stay open) and ends by itself the moment the invoice is paid.
            `winding_down` and `closed` are not set by anybody either: they
            follow the end date of the partnership. While it winds down the
            account can read and export its data and nothing can be created or
            changed (403 `PARTNER_WINDING_DOWN`); once it is closed everything
            is refused (403 `PARTNER_CLOSED`) except the invoices and billing of
            the owner signed in on widgetic.com.
        overdueSince:
          type: string
          format: date-time
          nullable: true
          description: >
            When the oldest overdue contract invoice was due; null unless
            `standing` is `payment_arrears`. Pay the invoices in the list of
            `GET /invoices/partner/{partnerId}` that are past their due date to
            end it.
        partners:
          type: array
          items:
            $ref: '#/components/schemas/MyPartner'
          description: >-
            The partners the account administers (nearly always one), the oldest
            first
      example:
        standing: Example standing
        overdueSince: '2026-01-15T09:30:00.000Z'
        partners:
          - Example MyPartner
    ResponseMeta:
      type: object
      description: >-
        Extra information about the answer: where a page sits in a list, the
        cursor of the next page, or warnings about a call that succeeded with a
        caveat.
      additionalProperties: true
      properties:
        page:
          type: integer
          description: The page that was read, counting from 1.
          example: 1
        size:
          type: integer
          description: How many items one page holds.
          example: 20
        total:
          type: integer
          description: How many items the whole list has.
          example: 135
        limit:
          type: integer
          description: The same as `size`.
          example: 20
        offset:
          type: integer
          description: How many items come before this page.
          example: 0
        hasNextPage:
          type: boolean
          example: true
        hasPreviousPage:
          type: boolean
          example: false
        nextCursor:
          type: string
          nullable: true
          description: >-
            Pass this as `cursor` to read the next page of a list that is read
            by cursor. `null` on the last page.
        warnings:
          type: array
          items:
            type: string
          description: >-
            Things the call did not do, though it succeeded (for example a table
            that could not be created just now).
    ErrorDetail:
      type: object
      required:
        - code
        - message
        - timestamp
      properties:
        code:
          type: string
          description: Machine-readable error code.
          example: RESOURCE_NOT_FOUND
        message:
          type: string
          description: Human-readable explanation.
          example: Composition not found
        param:
          type: string
          description: The field that caused the error, when one did.
          example: name
        docUrl:
          type: string
          description: Where this error is explained.
        suggestedAction:
          type: string
          description: What to do about it.
        retryAfter:
          type: integer
          description: >-
            Seconds to wait before trying again (rate limits). The same number
            is in the `Retry-After` header.
          example: 60
        details:
          type: object
          additionalProperties: true
          description: >-
            More about the error: the fields that failed, a limit that was
            reached.
        correlationId:
          type: string
          description: Quote this when you ask support about the call.
          example: req_123e4567-e89b-12d3-a456-426614174000
        timestamp:
          type: string
          format: date-time
          example: '2026-10-15T10:00:00.000Z'
    MyPartner:
      type: object
      description: >
        A partner as the person who administers it reads it: which partner it
        is, what standing it is in, and why it is paused when it is. The webhook
        address, its secret and the billing settings have their own routes and
        are not part of it.
      required:
        - id
        - name
        - status
        - allowedDomains
        - platformDomain
        - suspendedAt
        - suspensionReason
        - partnership
      properties:
        id:
          type: string
          format: uuid
          description: >-
            The id every other partner route asks for
            (`/partners/{partnerId}/...`)
        name:
          type: string
        status:
          type: string
          enum:
            - active
            - inactive
            - suspended
          description: >
            `active` while the partner is in force. `inactive` until Widgetic
            activates it (and after a deactivation). `suspended` while it is
            paused, which is done by hand and comes back when Widgetic resumes
            it.
        contactEmail:
          type: string
          nullable: true
        allowedDomains:
          type: array
          items:
            type: string
          description: >
            The domains Widgetic added to the embeds of this partner's
            customers. The domains the person added themselves are on the
            domains route of the account.
        platformDomain:
          type: string
          nullable: true
          example: acme.com
          description: >
            The website where the partner integrates Widgetic, as a bare name.
            It and every subdomain of it (`app.acme.com`, `learn.eu.acme.com`)
            can always show the partner's widgets, the ones its customers make
            through it included, and send entries to them, whatever
            `allowedDomains` and the account's own domain list say, so a list
            can never lock the partner's own website out. It is not an entry of
            `allowedDomains`, and it does not turn an empty list into a
            restriction: a partner that lists nothing stays unrestricted for
            every website. Widgetic sets it when the partner is set up; contact
            Widgetic to change it. `null` when none has been set.
        suspendedAt:
          type: string
          format: date-time
          nullable: true
          description: When the partner was paused; null unless it is paused now
        suspensionReason:
          type: string
          nullable: true
          description: >-
            The reason given when the partner was paused, as the partner is told
            it; null unless it is paused now
        partnership:
          $ref: '#/components/schemas/MyPartnership'
        createdAt:
          type: string
          format: date-time
          nullable: true
      example:
        id: 3fa85f64-5717-4562-b3fc-2c963f66afa6
        name: Example name
        status: Example status
        contactEmail: Example contactEmail
        allowedDomains: []
        platformDomain: acme.com
        suspendedAt: '2026-01-15T09:30:00.000Z'
        suspensionReason: Example suspensionReason
        partnership: null
        createdAt: '2026-01-15T09:30:00.000Z'
    MyPartnership:
      type: object
      description: >
        Where the partnership is on its way to its end. A partnership ends by a
        date Widgetic writes into the contract, never by being deleted: while
        the end date is ahead everything works (`ending`), then it winds down
        for 60 days (reading and exporting work, the embeds keep being served,
        nothing can be created or changed), and then it is closed (the embeds go
        dark and only the invoices of the signed-in owner can be read). Always
        sent: a partnership with no end date says `in_force` and nulls. The
        phase is worked out from the dates and today, so it changes on the day
        with nothing running.
      required:
        - phase
        - endsOn
        - windDownEndsOn
        - daysLeft
      properties:
        phase:
          type: string
          enum:
            - in_force
            - ending
            - winding_down
            - closed
            - erased
          description: >
            `in_force` while no end date is set. `ending` from the day an end
            date is set until it has passed. `winding_down` for 60 days after
            it. `closed` after that. `erased` once Widgetic has erased what it
            held for the partner.
        endsOn:
          type: string
          format: date
          nullable: true
          description: >-
            The last day the partnership is in force; null while no end date is
            set
        windDownEndsOn:
          type: string
          format: date
          nullable: true
          description: >-
            The last day of the wind-down; the day after it the partnership is
            closed. Null while no end date is set
        daysLeft:
          type: integer
          nullable: true
          description: >
            The whole days left in the current phase: to the end date while
            `ending`, to the end of the wind-down while `winding_down` (0 on the
            last day of each). Null in every other phase.
      example:
        phase: Example phase
        endsOn: Example endsOn
        windDownEndsOn: Example windDownEndsOn
        daysLeft: 42
  securitySchemes:
    partnerAuth:
      type: http
      scheme: bearer
      bearerFormat: Partner key
      description: >-
        For partners. Send your partner key as a bearer token: `Authorization:
        Bearer <your partner key>`. It starts with `wgt_prt_` and you make it in
        your partner's home workspace, under **Settings → API keys**; any other
        key is refused with `403`. See [API keys](/docs/api-keys) and
        [Partners](/docs/partners/overview).

````

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