Skip to main content
POST
Create a Service Account

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

CreateWorkspaceServiceData

environment_type
enum<string>
required

The environment type where this service will be available

Available options:
demo,
sandbox,
development,
testing,
staging,
production,
unknown
Example:

"production"

name
string
required

The display name of the service account

Maximum string length: 55
Example:

"Helpdesk Ticket Automation"

handle
string
required

The unique handle/identifier for the service account

Maximum string length: 55
Example:

"helpdesk"

description
string
required

A detailed description of the service account

Example:

"This service provides helpdesk functionality for IT support."

metadata
string[]
required

An array of business and context metadata about this service.

This is cosemetic only for system administrator reference and provides structured data in API responses

Minimum array length: 1
Example:

"['managed_by' => 'IT Team', 'service_level' => 'gold', 'support_contact' => '[email protected]']"

admin_notes
string
required

Administrative notes about this service account

Example:

"This service is critical for IT operations."

audit_notes
string
required

Audit notes about this service account

Example:

"Reviewed on 2024-01-15 for compliance."

permission_notes
string
required

Permission notes about this service account

Example:

"Permissions are managed by the IT team."

token_notes
string
required

Token notes about this service account

Example:

"Tokens are rotated every 90 days."

ipv4_allowed
string[]
required

An array of allowed IPv4 address CIDR ranges that can access the Provisionr API using a service token

Minimum array length: 1
Example:

"['1.2.3.4/32', '10.0.0.0/24']"

ipv6_allowed
string[]
required

An array of allowed IPv6 address CIDR ranges that can access the Provisionr API using a service token

Minimum array length: 1
Example:

"['2001:0db8::1', '2001:0db8::/32']"

Response

WorkspaceServiceDetailedResponseData

id
string
required
Example:

"wssvc_01hq8xyzabc123def456ghi789"

state
enum<string>
required
Available options:
staged,
active,
expiring,
expired,
deactivated
environment
enum<string>
required
Available options:
demo,
sandbox,
development,
testing,
staging,
production,
unknown
name
string
required
handle
string
required
description
string | null
required
admin_notes
string | null
required
audit_notes
string | null
required
permission_notes
string | null
required
token_notes
string | null
required
ipv4_allowed
string[] | null
required
ipv6_allowed
string[] | null
required
timestamp
WorkspaceServiceNestedTimestampResponseData · object
required
count
WorkspaceServiceNestedCountResponseData · object
required
included
string[]
required
Minimum array length: 1

API hyperlinks related to the workspace service record