(testingTokens())
- create - Retrieve a new testing token
Retrieve a new testing token. Only available for development instances.
package hello.world;
import com.clerk.backend_api.Clerk;
import com.clerk.backend_api.models.operations.CreateTestingTokenResponse;
import java.lang.Exception;
public class Application {
public static void main(String[] args) throws Exception {
Clerk sdk = Clerk.builder()
.bearerAuth("<YOUR_BEARER_TOKEN_HERE>")
.build();
CreateTestingTokenResponse res = sdk.testingTokens().create()
.call();
if (res.testingToken().isPresent()) {
// handle response
}
}
}
Error Type | Status Code | Content Type |
---|---|---|
models/errors/SDKError | 4XX, 5XX | */* |