मुख्य सामग्री पर जाएं
POST
Issue a publishable key for a client SDK
इसे भी देखें: Phone SDK की पब्लिश करने योग्य कुंजियों की सूची।

प्राधिकरण

x-api-key
string
header
आवश्यक

Your application's API key, from Developers -> API keys in the Business Console. The primary key has full access. A named key can be scoped: none, read or write per resource, limited to some workflows or to approved sessions, to a list of IP addresses, and to an expiry date. 401 means the key is wrong, revoked or expired; 403 means no key was sent, the key has no access to this resource or action, or the request came from an address outside its IP list; 404 on a session route means the session is outside the key's workflows or statuses. A key without media access receives image, video and PDF URLs as null, and a key without sessions write receives session links and tokens as null. See https://docs.didit.me/console/api-keys.

बॉडी

application/json
platform
enum<string>
आवश्यक

The platform the key is for: ios, android or web.

उपलब्ध विकल्प:
ios,
android,
web
उदाहरण:

"ios"

app_ids
string[]
आवश्यक

The bundle ids, package names or https origins the key works for.

Minimum array length: 1
उदाहरण:
name
string

Shown in API keys.

उदाहरण:

"iOS app"

प्रतिक्रिया

The key, with the value to ship in the app.

A publishable key of a client SDK. It is not a secret: it is bound to the app ids it may run in and cannot make a server call.

key_id
string
आवश्यक

The key.

उदाहरण:

"sk_01JCL2B6"

platform
enum<string>
आवश्यक

The platform it is for.

उपलब्ध विकल्प:
ios,
android,
web
उदाहरण:

"ios"

status
enum<string>
आवश्यक

active - it works; expiring - it was rotated and stops working at previous_expires_at; revoked - it stopped working.

उपलब्ध विकल्प:
active,
expiring,
revoked
उदाहरण:

"active"

publishable_key
string

Safe to ship inside the app: it can only start the checks the client SDK runs, never a server call.

उदाहरण:

"pk_live_ios_7Hq2"

app_ids
string[]

The bundle ids, package names or https origins it works for.

उदाहरण:
created_at
string<date-time>

When it was issued.

उदाहरण:

"2026-11-21T09:00:00Z"

अंतिम संशोधन 23 नवंबर 2026