Skip to main content
POST
Create a new service account.

Authorizations

Authorization
string
header
required

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

Body

application/json

Only the field matching grant_type is accepted: capability_scopes for an org-scoped account, project_grants for a project-scoped account. The matching field may be empty or omitted. Unknown fields return a 400.

name
string
required

Service-account name, unique within the organization. Must start with a letter, then letters, digits, spaces, hyphens, or underscores. Leading and trailing whitespace is stripped.

Required string length: 1 - 128
Pattern: ^[A-Za-z][A-Za-z0-9_ -]*$
grant_type
enum<string>
required

How the service account is scoped: to the whole organization (with capability scopes) or to specific projects (with project-role grants).

Available options:
org,
project
description
string | null

Optional free-text description.

Maximum string length: 512
capability_scopes
enum<string>[]

Capability scopes for an org-scoped account. May be empty; duplicates are collapsed.

A capability scope (not an OAuth scope) an org-scoped service account may hold. models:artifact-read is held only by the service account Fiddler manages for each model deployment and cannot be assigned by users.

Available options:
traces:ingest,
models:artifact-read,
guardrails:invoke
project_grants
object[]

Project-role grants for a project-scoped account. May be empty; each project may appear at most once, and an account may hold at most 50 grants (a larger set returns 400).

Maximum array length: 50

Response

Service account created successfully.

Response object for standard API responses.

api_version
enum<string>
default:3.0

API version.

Available options:
2.0,
3.0
kind
enum<string>
default:NORMAL

Type of response, indicating a normal response.

Available options:
NORMAL
data
object

A single service account, adding capability_scopes, project_grants, and the per-account key limit to the common fields.