Skip to the page

Retrieve workspace

The workspace this credential acts for: its plan, every limit with what is used, and who is asking.

opensend workspace get
Needs the scopeworkspace:read
Only reads

This method takes no input.

Returns

The command prints the answer: as JSON when its output goes to a file or another program, and as a table or a list of fields in a terminal. When the API refuses, the error goes to the error stream and the command ends with a code that names the failure. Output and scripts lists the codes.

  • object"workspace"

    Always workspace.

  • idstring

    The id of the workspace.

  • namestring

    The name of the workspace.

  • slugstring

    The name in lowercase letters, digits and dashes.

  • planobject

    The plan the workspace is on.

  • plan.idstring

    The id of the plan: free, pro or max, or self_hosted on a server a team hosts itself.

  • plan.namestring

    The name of the plan.

  • plan.renewsAtstring

    When the counts of the current month start again.

  • plan.intervalstring | null

    How the plan is paid: by the month or by the year. null when nobody pays for it.

    One ofmonthyear

  • plan.paidUntilstring | null

    Until when the plan is paid for, or null.

  • plan.extraEmailCentsnumber | null

    What every 1,000 emails past a limit cost on this plan, in cents of a US dollar, or null.

  • plan.stopsAtLimitboolean

    Whether sending stops when the emails of the month are used up.

  • limitsobject[]

    Every limit of the plan, with how much of it is used.

  • limits[].idstring

    Which limit this is, such as domains or members.

  • limits[].usednumber

    How much of it is used in the current period.

  • limits[].limitnumber

    How much the plan allows.

  • usageobject[]

    Everything that is counted, whether the plan limits it or not.

  • usage[].idstring

    What is counted, such as transactional or contacts.

  • usage[].usednumber

    How much of it is used in the current period.

  • extraobject

    What this month has used beyond the plan. Zero on a plan that stops at its limits.

  • extra.emailsinteger

    How many emails went past the limits of the plan this month.

  • extra.centsinteger

    What they cost so far, in cents of a US dollar.

  • viewerobject

    Who is asking.

  • viewer.namestring

    The name of the person, or of the API key.

  • viewer.emailstring

    The address of the person. Empty for an API key.

  • viewer.imagestring | null

    The address of their picture, or null.

  • viewer.kindstring

    How the request was signed: session for a signed-in person, key for an API key.

    One ofsessionkeydemo

  • viewer.rolestring | null

    Their role in the workspace, or null for an API key.

    One ofowneradminmemberviewer

  • storagestring

    Where the data is kept: d1 for the database, memory when nothing outlives a restart.

    One ofmemoryd1

  • servicesobject[]

    What the API is connected to, and whether each part works.

  • services[].idstring

    The part: api, sending, receiving, webhooks, payments, assistant or images, the storage that keeps copies of your images.

    One ofapisendingreceivingwebhookspaymentsassistantimages

  • services[].statestring

    ok when it works, off when it is not connected, degraded or down when it fails.

    One ofokoffdegradeddown

  • unsubscribePageobject

    How the unsubscribe page of the workspace looks.

  • unsubscribePage.titlestring

    The heading of the unsubscribe page. Up to 120 characters.

  • unsubscribePage.messagestring

    The sentence under the heading. Up to 500 characters.

  • unsubscribePage.buttonstring

    The words on the button. Up to 60 characters.

  • unsubscribePage.accentstring

    The colour of the button, as a hex colour such as #111111.

  • unsubscribePage.askReasonboolean

    Whether the page asks why the person is leaving.

  • unsubscribePage.showLogoboolean

    Whether the page shows your logo.

  • billingEmailstring

    Where invoices and billing notices are sent.

  • replyTostring

    The address replies go to when a message names none and its template has none. Empty for none.

  • hostImagesboolean

    Whether a copy is kept of every image of your templates and broadcasts, and outgoing mail links the copy. It only happens while the images service is ok.

  • createdAtstring

    When the workspace was made.