Publisher Account

Publisher Account - Create

Generates a fresh key via PublisherAccountManager, INSERTs the hash + prefix + hint into publisher_account, and returns the plaintext IN THE RESPONSE BODY exactly once. The plaintext is unrecoverable after this call — the SPA MUST force a "copy this key" confirmation step before the modal closes. Body: account_name*, cpc_share (default 0.7000), rate_limit_tier (default 'default'), organic (default false).

post/admin/v1/publishers/{id}/accounts

Request

  • Base URL: https://api.juju.com
  • URL: https://api.juju.com/admin/v1/publishers/{id}/accounts
  • Auth: none declared

Path parameters

idinteger required

Request body

account_namestring
cpc_sharenumber float
rate_limit_tierstring
organicboolean

Mix unpaid / organic inventory into this account's search results (below paid). Default false.

min_payoutnumber float nullable

Minimum NET payout (effective_cpc x cpc_share) this account earns on a served paid job. Paid jobs below it are not served to this account on the live search API; organic backfill is unaffected. Null / omitted = no floor.

Response

Created. data.api_key_plaintext is returned EXACTLY ONCE — unrecoverable after this response. data.warning explains this to the user.

metaobject required

Pagination and context metadata. Always present, empty object ({}) when no metadata applies to the response.

errorsstring[] required

Empty array on success. On failure, human-readable error strings suitable for surfacing to end users.

Example response

{
  "data": {
    "api_key_prefix": "juju_pub_XY",
    "api_key_hint": "abcd",
    "cpc_share": "0.7000",
    "rate_limit_tier": "default",
    "min_payout": "0.1000"
  },
  "errors": []
}

Changes

No recorded changes to this operation across all 1 revision of this API.