v1 · OpenAPI 3.1Panel

API referansı İngilizcedir.

Users

Invite a user with labels

POST/v1/applications/{app_id}/invitationsHenüz kullanılamıyor

Not available yet. Would create an invite link. Labels in the invite would be set automatically when the user signs up (e.g. the store they belong to). Label groups set to "user picks" would still be shown on the sign-up page.

country is required. MVP rule: the user is stored in the application's region; with country_restriction.mode: only_listed, an unlisted country returns 422 country_not_allowed.

Gereken yetki
users:write
Kimlik doğrulama
Secret key · Organization API key

Yol parametreleri

  • app_idstringzorunlu

    Örnek: app_seller

Gövde application/json

  • emailstring (email)zorunlu

  • countrystringzorunlu

    ISO 3166-1 alpha-2. Decides the data region.

    Örnek: TR

  • labelsLabels

  • send_emailboolean

    Varsayılan: true

  • expires_in_daysinteger

    Varsayılan: 7

Yanıtlar

  • 201Createdobject

    Invite created

    • idstring

    • urlstring

      Örnek: https://auth.seller.anka.io/invite/inv_7Gk2

    • expires_atstring (date-time)

  • 400Bad RequestError

    Invalid request

    • errorobjectzorunlu

      5 alan
      • codestringzorunlu

        Stable machine code, e.g. email_exists, country_not_allowed, user_moved, method_not_available, region_unavailable

        Örnek: region_unavailable

      • messagestringzorunlu

        Plain English, for developers

      • regionstringboş olabilir

        Region that produced the error, if any

        Değerler: EU TR

      • retryablebooleanzorunlu

      • detailsobject

  • 422Unprocessable ContentError

    country_not_allowed: the application only accepts users from the countries listed in country_restriction.countries.

    • errorobjectzorunlu

      5 alan
      • codestringzorunlu

        Stable machine code, e.g. email_exists, country_not_allowed, user_moved, method_not_available, region_unavailable

        Örnek: region_unavailable

      • messagestringzorunlu

        Plain English, for developers

      • regionstringboş olabilir

        Region that produced the error, if any

        Değerler: EU TR

      • retryablebooleanzorunlu

      • detailsobject