API Reference > imodeljs-backend > Utils > AuthorizedBackendRequestContext > create create MethodStatic Create a new context for agent applications or long running backend operations to pass to various services that require authorization. Uses the authorization information supplied to IModelHost to setup an accessToken within the context. create(activityId: string = ...): Promise<AuthorizedBackendRequestContext> throws BentleyError if the application cannot be authorized. see IModelHost.authorizationClient to setup authorization for the backend application. Parameter Type Description activityId string Returns - Promise<AuthorizedBackendRequestContext> Defined in core/backend/src/BackendRequestContext.ts Line 34 Last Updated: 12 June, 2024