Skip to contents

Adds a new API token for the specified user on a NocoDB server via its POST /api/v1/tokens API endpoint.

Usage

create_api_token(
  description,
  hostname = pal::pkg_config_val("hostname"),
  email = pal::pkg_config_val("email", require = TRUE),
  password = pal::pkg_config_val("password", require = TRUE)
)

Arguments

description

Description to assign to the newly created API token (displayed as Token name in NocoDB's UI).

hostname

NocoDB server hostname. A character scalar.

email

E-mail address of the NocoDB user to authenticate with.

password

Password of the NocoDB user to authenticate with.

Value

A tibble with (meta)data about the newly created API token.

Details

This API endpoint does not support authentication via API tokens.

See also

Other functions to manage NocoDB API tokens: api_tokens(), delete_api_token()

Other functions to manage NocoDB authentication: api_tokens(), assert_super_admin(), delete_api_token(), is_signed_in(), is_super_admin(), refresh_sign_in(), req_auth(), sign_in(), sign_out(), sign_up_user()