Upload Certificate
POST /v1/certificates — createCertificate
import { client, Certificates } from 'anchorbrowser';
// ANCHORBROWSER_API_KEY is read from the environment by default;
// set it explicitly like this:
client.setConfig({ auth: () => 'your-api-key' });
const result = await Certificates.createCertificate({
body: {
name: 'string',
file: new File(['file content'], 'file.txt')
}
});
console.log(result);
from anchorbrowser import Anchorbrowser
# ANCHORBROWSER_API_KEY is read from the environment by default;
# set it explicitly with Anchorbrowser(api_key="your-api-key")
client = Anchorbrowser()
result = client.certificates.create_certificate(
name="string",
file=("file.txt", b"file content"),
)
print(result)
List Certificates
GET /v1/certificates — listCertificates
import { client, Certificates } from 'anchorbrowser';
// ANCHORBROWSER_API_KEY is read from the environment by default;
// set it explicitly like this:
client.setConfig({ auth: () => 'your-api-key' });
const result = await Certificates.listCertificates();
console.log(result);
from anchorbrowser import Anchorbrowser
# ANCHORBROWSER_API_KEY is read from the environment by default;
# set it explicitly with Anchorbrowser(api_key="your-api-key")
client = Anchorbrowser()
result = client.certificates.list_certificates()
print(result)
Delete Certificate
DELETE /v1/certificates/{name} — deleteCertificate
import { client, Certificates } from 'anchorbrowser';
// ANCHORBROWSER_API_KEY is read from the environment by default;
// set it explicitly like this:
client.setConfig({ auth: () => 'your-api-key' });
const result = await Certificates.deleteCertificate({
path: {
name: 'your-name'
}
});
console.log(result);
from anchorbrowser import Anchorbrowser
# ANCHORBROWSER_API_KEY is read from the environment by default;
# set it explicitly with Anchorbrowser(api_key="your-api-key")
client = Anchorbrowser()
result = client.certificates.delete_certificate(
"your-name",
)
print(result)

