MsgCore icon

MsgCore

Universal messaging gateway - send messages across multiple platforms

ApiKeys → Roll

AI-generated

Summary

Roll an API key (generate new key, revoke old after 24h)

Inputs

  • keyId (required) — API key ID to roll
  • project (required) — Project identifier to operate on

Output shape

API key object returned by the MsgCore API (exact fields not declared in properties or source)

Neither properties nor source specify the returned data shape; describe only what is declared.

Examples

Example 1: Roll a specific API key in a project

Set keyId to the target key's identifier and project to the target project (default: 'default'). The operation sends a POST request to /api/v1/projects/{{project}}/keys/{{keyId}}/roll, which generates a new API key and schedules the old one for revocation after 24 hours.

Discussion