Shows how to create an API key that lets apps and other services access Labelbox APIs and endpoints.
name
: a descriptive nameuser
: an existing user email addressrole
: an existing role (one of client.get_roles()
)validity
and time_unit
: the duration of the API key using an integer (validity
) and a TimeUnit
enum (time_unit
). Valid time_unit
values include TimeUnit.SECOND
, TimeUnit.MINUTE
, TimeUnit.HOUR
, TimeUnit.DAY
, and TimeUnit.WEEK
.