Skip to main content

Create Secret

POST 

/vault/v1/secrets

Create Secret

Request

Body

required
    headerobjectrequired
    nameobject
    anyOf

    string

    descriptionobject
    anyOf

    string

    secretobjectrequired
    kind SecretKind (string)required

    Possible values: [provider_key]

    data

    object

    required

    provider ProviderKind (string)required

    Possible values: [openai, cohere, anyscale, deepinfra, alephalpha, groq, mistralai, anthropic, perplexityai, togetherai, openrouter, gemini]

    key Key (string)required

Responses

Successful Response
Schema

    header

    object

    required

    nameobject

    anyOf

    string

    descriptionobject

    anyOf

    string

    secret

    object

    required

    kind SecretKind (string)required

    Possible values: [provider_key]

    data

    object

    required

    provider ProviderKind (string)required

    Possible values: [openai, cohere, anyscale, deepinfra, alephalpha, groq, mistralai, anthropic, perplexityai, togetherai, openrouter, gemini]

    key Key (string)required
    id uuidrequired
    lifecycleobject
    anyOf
    created_at

    object

    anyOf

    string

    updated_at

    object

    anyOf

    string

    updated_by_id

    object

    anyOf

    string

Loading...