API Keys

Create an API Key

Create a new full-access API key for the authenticated team.

post/teams/{team_id}/api-keys

Request

  • Base URL: https://api.presscart.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.presscart.com/teams/{team_id}/api-keys
  • Auth: HTTP bearer

Path parameters

team_idstring uuid required
Example:9cc59dd6-962a-4c7d-85ea-5ec4e1c3d859

Request body

descriptionstring required

Response

API Key created successfully

idstring uuid required
access_key_prefixstring nullable required
access_key_last4string nullable required
token_type'read_only' | 'full_access' | 'custom' required
descriptionstring nullable required
lifespannumber nullable required
level'team' | 'admin' required
created_by_idstring uuid required
updated_by_idstring uuid nullable required
team_idstring uuid nullable required
access_keystring required

Example response

{
  "access_key_prefix": "pc_e364",
  "access_key_last4": "YMQq",
  "token_type": "read_only",
  "description": "Order sync for the n8n workflow",
  "lifespan": 2592000,
  "level": "team",
  "access_key": "pc_e364_iE8En1p_WyNa5sVQ_XDcDYMQq"
}

Changes

No recorded changes to this operation across all 3 revisions of this API.