API Keys
Create a company API key
Changed onpost/companies/{companyId}/api-keys
Request
- Base URLhttps://api.medianfi.com/api/v1
- AuthHTTP bearer
Path parameters
companyId, string uuid required
Request body
object required
name, string required
purpose, 'mcp'
scopes, string[]
expiresAt, string date-time
replacePending, boolean
#4966, MCP keys only: revoke the caller's pending key (created in the last 10 minutes and never used) and mint a new one.
Response
API key created. Plaintext key is returned once.
Changes
- info
added the new optional request property
replacePending - info
added the non-success response with the status
- info