All pages
Powered by GitBook
1 of 9

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

State diagram

The following diagram shows the status transition process of an API token on the platform.

State
Definition

Create API token

Creates a new token object for the specific account.

Active

The token has been authenticated in the account. It will allow access to the endpoint.

Disabled

The token has been temporarily deactivated. Any attempts to access the endpoint will return an error.

Deleted

The token has been permanently removed from the system. This state is not visible to the client or vendor account users.

The state transition diagram of an API token.

List API tokens

Gets the API tokens collection.

API Token

The API Token object represents a user authentication token within the platform.

This object contains the following attributes:

Field
Type
Description

id

string, core

(Read-only) The primary identifier for the token.

name

string, core

Delete API token

Delete a token by its token ID.

Update API token

Updates the specific token object.

Get API token

Gets a single API token using the token ID.

Enable API token

Enable a specific API token.

Disable API token

Disable a specific API token.

The name of the token.

description

string

(Optional) A description of the token.

icon

string, core

(Optional) The relative path to the API token icon.

status

string

(Read-only) The token's status. Allowed values are:

  • Active

  • Disabled

  • Deleted

modules

Module validation when creating API token.

account

object

Represents the object under which the token has been defined.

Example:

token

string

(Read-only) The token's authentication code.

audit

object

(Read-only) Represents the object.

API TOKEN OBJECT
{
    "id": "TKN-4134-7330",
    "name": "access token",
    "description": "Token for Marketplace",
    "icon": "",
    "status": "Active",
    "modules": [
        {
            "id": "MOD-1756-1452"
        },
        {
            "id": "MOD-9042-8216"
        }
    ],
    "token": "CODE"
}

Example

module
account
audit
{
  "id": "ACC-123-123",
  "name": "Microsoft"
}

Delete API token

delete

Delete API token. Available for all account types (Operations account, Client account, Vendor account). Permanently removes the API token; it can no longer be used for authentication. Returns 204 No Content on success.

Path parameters
idstringRequired

API token identifier.

Responses
204

No Content

No content

400

Bad Request

application/json
typestring · nullableOptional
titlestring · nullableOptional
statusinteger · int32 · nullableOptional
detailstring · nullableOptional
instancestring · nullableOptional
Other propertiesanyOptional
404

Not Found

application/json
typestring · nullableOptional
titlestring · nullableOptional
statusinteger · int32 · nullableOptional
detailstring · nullableOptional
instancestring · nullableOptional
Other propertiesanyOptional
delete/public/v1/accounts/api-tokens/{id}
DELETE /public/v1/accounts/api-tokens/{id} HTTP/1.1
Host: api.platform.softwareone.com
Accept: */*

No content

Update API token

put

Update API token. Available for all account types (Operations account, Client account, Vendor account). Accepts a delta payload with fields to update (e.g. name, description, icon, modules). Returns the updated API token object.

Path parameters
idstringRequired

API token identifier.

Body
idstringOptional
atstring · date-time · nullableOptional
idstringOptional
namestringOptional
iconstring · nullableOptional
revisioninteger · int32Optional
atstring · date-time · nullableOptional
idstringOptional
namestringOptional
iconstring · nullableOptional
revisioninteger · int32Optional
omittedstring[]Optional
namestringOptional
iconstring · nullableOptional
revisioninteger · int32Optional
statusstringOptional
descriptionstring · nullableOptional
lastAccessAtstring · date-time · nullableOptional
tokenstringOptional
idstringOptional
namestring · min: 1 · max: 500Required
iconstring · nullableOptional
revisioninteger · int32Optional
typestring · enumRequiredPossible values:
statusstring · enumRequiredPossible values:
idstringOptional
namestringOptional
revisioninteger · int32Optional
descriptionstringOptional
group.buyersstring[]Optional
sharedAccountbooleanOptionalDeprecated
configurablebooleanOptional
defaultbooleanOptional
paidbooleanOptional
typestring[]Optional
obsoletebooleanOptional
multibooleanOptional
singlebooleanOptional
idstringOptional
atstring · date-time · nullableOptional
idstringOptional
namestringOptional
iconstring · nullableOptional
revisioninteger · int32Optional
atstring · date-time · nullableOptional
idstringOptional
namestringOptional
iconstring · nullableOptional
revisioninteger · int32Optional
omittedstring[]Optional
namestringOptional
iconstring · nullableOptional
revisioninteger · int32Optional
statusstring · enumOptionalPossible values:
Responses
200

OK

application/json
idstringOptional
atstring · date-time · nullableOptional
idstringOptional
namestringOptional
iconstring · nullableOptional
revisioninteger · int32Optional
atstring · date-time · nullableOptional
idstringOptional
namestringOptional
iconstring · nullableOptional
revisioninteger · int32Optional
omittedstring[]Optional
namestringOptional
iconstring · nullableOptional
revisioninteger · int32Optional
statusstringOptional
descriptionstring · nullableOptional
lastAccessAtstring · date-time · nullableOptional
tokenstringOptional
idstringOptional
namestring · min: 1 · max: 500Required
iconstring · nullableOptional
revisioninteger · int32Optional
typestring · enumRequiredPossible values:
statusstring · enumRequiredPossible values:
idstringOptional
namestringOptional
revisioninteger · int32Optional
descriptionstringOptional
group.buyersstring[]Optional
sharedAccountbooleanOptionalDeprecated
configurablebooleanOptional
defaultbooleanOptional
paidbooleanOptional
typestring[]Optional
obsoletebooleanOptional
multibooleanOptional
singlebooleanOptional
idstringOptional
atstring · date-time · nullableOptional
idstringOptional
namestringOptional
iconstring · nullableOptional
revisioninteger · int32Optional
atstring · date-time · nullableOptional
idstringOptional
namestringOptional
iconstring · nullableOptional
revisioninteger · int32Optional
omittedstring[]Optional
namestringOptional
iconstring · nullableOptional
revisioninteger · int32Optional
statusstring · enumOptionalPossible values:
400

Bad Request

application/json
typestring · nullableOptional
titlestring · nullableOptional
statusinteger · int32 · nullableOptional
detailstring · nullableOptional
instancestring · nullableOptional
Other propertiesanyOptional
404

Not Found

application/json
typestring · nullableOptional
titlestring · nullableOptional
statusinteger · int32 · nullableOptional
detailstring · nullableOptional
instancestring · nullableOptional
Other propertiesanyOptional
put/public/v1/accounts/api-tokens/{id}
PUT /public/v1/accounts/api-tokens/{id} HTTP/1.1
Host: api.platform.softwareone.com
Content-Type: application/json
Accept: */*
Content-Length: 95

{
  "name": "Robot Updated",
  "description": "Updated description",
  "modules": [
    {
      "id": "MOD-1756-1452"
    }
  ]
}
{
  "id": "TKN-4134-7330",
  "revision": 2,
  "name": "Robot Updated",
  "description": "Updated description",
  "status": "Active",
  "account": {
    "id": "ACC-1234-5678",
    "name": "Microsoft"
  },
  "modules": [
    {
      "id": "MOD-1756-1452"
    }
  ],
  "audit": {
    "created": {
      "at": "2024-02-01T09:12:23+00:00",
      "by": {
        "id": "USR-0001",
        "name": "Ops User"
      }
    },
    "updated": {
      "at": "2024-02-02T10:00:00+00:00",
      "by": {
        "id": "USR-0001",
        "name": "Ops User"
      }
    }
  }
}

Get API token by ID

get

Get API token by ID. Available for all account types (Operations account, Client account, Vendor account). Returns a single API token; token value is not returned (only on create). Optional select query parameter controls which fields are returned.

Path parameters
idstringRequired

API token identifier.

Query parameters
selectstringOptional

Optional RQL select statement to limit returned fields.

Responses
200

OK

application/json
idstringOptional
atstring · date-time · nullableOptional
idstringOptional
namestringOptional
iconstring · nullableOptional
revisioninteger · int32Optional
atstring · date-time · nullableOptional
idstringOptional
namestringOptional
iconstring · nullableOptional
revisioninteger · int32Optional
omittedstring[]Optional
namestringOptional
iconstring · nullableOptional
revisioninteger · int32Optional
statusstringOptional
descriptionstring · nullableOptional
lastAccessAtstring · date-time · nullableOptional
tokenstringOptional
idstringOptional
namestring · min: 1 · max: 500Required
iconstring · nullableOptional
revisioninteger · int32Optional
typestring · enumRequiredPossible values:
statusstring · enumRequiredPossible values:
idstringOptional
namestringOptional
revisioninteger · int32Optional
descriptionstringOptional
group.buyersstring[]Optional
sharedAccountbooleanOptionalDeprecated
configurablebooleanOptional
defaultbooleanOptional
paidbooleanOptional
typestring[]Optional
obsoletebooleanOptional
multibooleanOptional
singlebooleanOptional
idstringOptional
atstring · date-time · nullableOptional
idstringOptional
namestringOptional
iconstring · nullableOptional
revisioninteger · int32Optional
atstring · date-time · nullableOptional
idstringOptional
namestringOptional
iconstring · nullableOptional
revisioninteger · int32Optional
omittedstring[]Optional
namestringOptional
iconstring · nullableOptional
revisioninteger · int32Optional
statusstring · enumOptionalPossible values:
404

Not Found

application/json
typestring · nullableOptional
titlestring · nullableOptional
statusinteger · int32 · nullableOptional
detailstring · nullableOptional
instancestring · nullableOptional
Other propertiesanyOptional
get/public/v1/accounts/api-tokens/{id}
GET /public/v1/accounts/api-tokens/{id} HTTP/1.1
Host: api.platform.softwareone.com
Accept: */*
{
  "id": "TKN-4134-7330",
  "revision": 2,
  "name": "Robot",
  "description": "Token for ERP integration",
  "status": "Active",
  "account": {
    "id": "ACC-1234-5678",
    "name": "Microsoft"
  },
  "modules": [
    {
      "id": "MOD-1756-1452"
    },
    {
      "id": "MOD-9042-8216"
    }
  ]
}

Enable API token

post

Enable API token. Changes API token state to Active (e.g. from Disabled). Available for all account types (Operations account, Client account, Vendor account). Returns the updated API token object.

Path parameters
idstringRequired

API token identifier.

Responses
200

OK

application/json
idstringOptional
atstring · date-time · nullableOptional
idstringOptional
namestringOptional
iconstring · nullableOptional
revisioninteger · int32Optional
atstring · date-time · nullableOptional
idstringOptional
namestringOptional
iconstring · nullableOptional
revisioninteger · int32Optional
omittedstring[]Optional
namestringOptional
iconstring · nullableOptional
revisioninteger · int32Optional
statusstringOptional
descriptionstring · nullableOptional
lastAccessAtstring · date-time · nullableOptional
tokenstringOptional
idstringOptional
namestring · min: 1 · max: 500Required
iconstring · nullableOptional
revisioninteger · int32Optional
typestring · enumRequiredPossible values:
statusstring · enumRequiredPossible values:
idstringOptional
namestringOptional
revisioninteger · int32Optional
descriptionstringOptional
group.buyersstring[]Optional
sharedAccountbooleanOptionalDeprecated
configurablebooleanOptional
defaultbooleanOptional
paidbooleanOptional
typestring[]Optional
obsoletebooleanOptional
multibooleanOptional
singlebooleanOptional
idstringOptional
atstring · date-time · nullableOptional
idstringOptional
namestringOptional
iconstring · nullableOptional
revisioninteger · int32Optional
atstring · date-time · nullableOptional
idstringOptional
namestringOptional
iconstring · nullableOptional
revisioninteger · int32Optional
omittedstring[]Optional
namestringOptional
iconstring · nullableOptional
revisioninteger · int32Optional
statusstring · enumOptionalPossible values:
400

Bad Request

application/json
typestring · nullableOptional
titlestring · nullableOptional
statusinteger · int32 · nullableOptional
detailstring · nullableOptional
instancestring · nullableOptional
Other propertiesanyOptional
404

Not Found

application/json
typestring · nullableOptional
titlestring · nullableOptional
statusinteger · int32 · nullableOptional
detailstring · nullableOptional
instancestring · nullableOptional
Other propertiesanyOptional
post/public/v1/accounts/api-tokens/{id}/enable
POST /public/v1/accounts/api-tokens/{id}/enable HTTP/1.1
Host: api.platform.softwareone.com
Accept: */*
{
  "id": "TKN-4134-7330",
  "revision": 2,
  "name": "Robot",
  "description": "Token for ERP integration",
  "status": "Active",
  "account": {
    "id": "ACC-1234-5678",
    "name": "Microsoft"
  },
  "modules": [
    {
      "id": "MOD-1756-1452"
    }
  ],
  "audit": {
    "created": {
      "at": "2024-02-01T09:12:23+00:00",
      "by": {
        "id": "USR-0001",
        "name": "Ops User"
      }
    },
    "updated": {
      "at": "2024-02-02T10:00:00+00:00",
      "by": {
        "id": "USR-0001",
        "name": "Ops User"
      }
    },
    "enabled": {
      "at": "2024-02-02T10:00:00+00:00",
      "by": {
        "id": "USR-0001",
        "name": "Ops User"
      }
    }
  }
}

Disable API token

post

Disable API token. Changes API token state to Disabled. Available for all account types (Operations account, Client account, Vendor account). Returns the updated API token object.

Path parameters
idstringRequired

API token identifier.

Responses
200

OK

application/json
idstringOptional
atstring · date-time · nullableOptional
idstringOptional
namestringOptional
iconstring · nullableOptional
revisioninteger · int32Optional
atstring · date-time · nullableOptional
idstringOptional
namestringOptional
iconstring · nullableOptional
revisioninteger · int32Optional
omittedstring[]Optional
namestringOptional
iconstring · nullableOptional
revisioninteger · int32Optional
statusstringOptional
descriptionstring · nullableOptional
lastAccessAtstring · date-time · nullableOptional
tokenstringOptional
idstringOptional
namestring · min: 1 · max: 500Required
iconstring · nullableOptional
revisioninteger · int32Optional
typestring · enumRequiredPossible values:
statusstring · enumRequiredPossible values:
idstringOptional
namestringOptional
revisioninteger · int32Optional
descriptionstringOptional
group.buyersstring[]Optional
sharedAccountbooleanOptionalDeprecated
configurablebooleanOptional
defaultbooleanOptional
paidbooleanOptional
typestring[]Optional
obsoletebooleanOptional
multibooleanOptional
singlebooleanOptional
idstringOptional
atstring · date-time · nullableOptional
idstringOptional
namestringOptional
iconstring · nullableOptional
revisioninteger · int32Optional
atstring · date-time · nullableOptional
idstringOptional
namestringOptional
iconstring · nullableOptional
revisioninteger · int32Optional
omittedstring[]Optional
namestringOptional
iconstring · nullableOptional
revisioninteger · int32Optional
statusstring · enumOptionalPossible values:
400

Bad Request

application/json
typestring · nullableOptional
titlestring · nullableOptional
statusinteger · int32 · nullableOptional
detailstring · nullableOptional
instancestring · nullableOptional
Other propertiesanyOptional
404

Not Found

application/json
typestring · nullableOptional
titlestring · nullableOptional
statusinteger · int32 · nullableOptional
detailstring · nullableOptional
instancestring · nullableOptional
Other propertiesanyOptional
post/public/v1/accounts/api-tokens/{id}/disable
POST /public/v1/accounts/api-tokens/{id}/disable HTTP/1.1
Host: api.platform.softwareone.com
Accept: */*
{
  "id": "TKN-4134-7330",
  "revision": 2,
  "name": "Robot",
  "description": "Token for ERP integration",
  "status": "Disabled",
  "account": {
    "id": "ACC-1234-5678",
    "name": "Microsoft"
  },
  "modules": [
    {
      "id": "MOD-1756-1452"
    }
  ],
  "audit": {
    "created": {
      "at": "2024-02-01T09:12:23+00:00",
      "by": {
        "id": "USR-0001",
        "name": "Ops User"
      }
    },
    "updated": {
      "at": "2024-02-02T10:05:00+00:00",
      "by": {
        "id": "USR-0001",
        "name": "Ops User"
      }
    },
    "disabled": {
      "at": "2024-02-02T10:05:00+00:00",
      "by": {
        "id": "USR-0001",
        "name": "Ops User"
      }
    }
  }
}
post

Create API token. Available for all account types (Operations account, Client account, Vendor account). Accepts account reference, name, optional description, and at least one module. Returns the created API token object with revision 1 and token value (returned only on create).

Body
idall ofOptional
anyOptionalPattern: ^ACC-\d\d\d\d-\d\d\d\d$
and
anyOptionalPattern: ^ACC-\d\d\d\d-\d\d\d\d$
and
anyOptionalPattern: ^ACC-\d\d\d\d-\d\d\d\d$
and
anyOptionalPattern: ^ACC-\d\d\d\d-\d\d\d\d$
and
anyOptionalPattern: ^ACC-\d\d\d\d-\d\d\d\d$
namestringOptional
iconstring · nullableOptional
descriptionstring · nullableOptional
idall ofOptional
anyOptionalPattern: ^MOD-\d\d\d\d$
and
anyOptionalPattern: ^MOD-\d\d\d\d$
idstringOptional
Responses
201

Created

application/json
idstringOptional
atstring · date-time · nullableOptional
idstringOptional
namestringOptional
iconstring · nullableOptional
revisioninteger · int32Optional
atstring · date-time · nullableOptional
idstringOptional
namestringOptional
iconstring · nullableOptional
revisioninteger · int32Optional
omittedstring[]Optional
namestringOptional
iconstring · nullableOptional
revisioninteger · int32Optional
statusstringOptional
descriptionstring · nullableOptional
lastAccessAtstring · date-time · nullableOptional
tokenstringOptional
idstringOptional
namestring · min: 1 · max: 500Required
iconstring · nullableOptional
revisioninteger · int32Optional
typestring · enumRequiredPossible values:
statusstring · enumRequiredPossible values:
idstringOptional
namestringOptional
revisioninteger · int32Optional
descriptionstringOptional
group.buyersstring[]Optional
sharedAccountbooleanOptionalDeprecated
configurablebooleanOptional
defaultbooleanOptional
paidbooleanOptional
typestring[]Optional
obsoletebooleanOptional
multibooleanOptional
singlebooleanOptional
idstringOptional
atstring · date-time · nullableOptional
idstringOptional
namestringOptional
iconstring · nullableOptional
revisioninteger · int32Optional
atstring · date-time · nullableOptional
idstringOptional
namestringOptional
iconstring · nullableOptional
revisioninteger · int32Optional
omittedstring[]Optional
namestringOptional
iconstring · nullableOptional
revisioninteger · int32Optional
statusstring · enumOptionalPossible values:
400

Bad Request

application/json
typestring · nullableOptional
titlestring · nullableOptional
statusinteger · int32 · nullableOptional
detailstring · nullableOptional
instancestring · nullableOptional
Other propertiesanyOptional
post/public/v1/accounts/api-tokens
POST /public/v1/accounts/api-tokens HTTP/1.1
Host: api.platform.softwareone.com
Content-Type: application/json
Accept: */*
Content-Length: 149

{
  "account": {
    "id": "ACC-1234-5678"
  },
  "name": "Robot",
  "description": "Token for ERP integration",
  "modules": [
    {
      "id": "MOD-1756-1452"
    },
    {
      "id": "MOD-9042-8216"
    }
  ]
}
{
  "id": "TKN-4134-7330",
  "revision": 1,
  "name": "Robot",
  "description": "Token for ERP integration",
  "status": "Active",
  "token": "idt:TKN-4134-7330:z24kA...328f",
  "account": {
    "id": "ACC-1234-5678",
    "name": "Microsoft"
  },
  "modules": [
    {
      "id": "MOD-1756-1452"
    },
    {
      "id": "MOD-9042-8216"
    }
  ],
  "audit": {
    "created": {
      "at": "2024-02-01T09:12:23+00:00",
      "by": {
        "id": "USR-0001",
        "name": "Ops User"
      }
    },
    "updated": {
      "at": "2024-02-01T09:12:23+00:00",
      "by": {
        "id": "USR-0001",
        "name": "Ops User"
      }
    }
  }
}
get

List API tokens. Available for all account types (Operations account, Client account, Vendor account). Returns a paged list of API tokens; supports RQL query parameters for filtering and selection.

Header parameters
MPT-StreamingbooleanOptional

Stream the full result set instead of a page. Membership fixes at stream start, each record is emitted once, and MPT-Item-Count gives the exact count. Accept: application/jsonl for line-delimited output. A positive limit caps the stream, -1 or absent reads all; offset skips that many records of the requested order, so limit and offset together read one window. Each window is its own snapshot — consecutive windows are not a resumable export.

Responses
200

OK

Streamed and paged responses both answer 200. Only a streamed one carries the MPT-Streaming and MPT-Item-Count headers listed below.

application/jsonl: one object per line, no envelope, so the schema describes one line. A line is a record or an ID-only deleted stub (StreamedDeletedRecord) — check $meta.deleted before ingesting. Blank lines are keep-alives.

MPT-StreamingbooleanOptional

Streamed responses only, where it is true. Absent on a paged response.

MPT-Item-Countinteger · int64Optional

Streamed responses only. Absent on a paged response. The exact object count — compare it with the number received.

offsetinteger · int32Optional
limitinteger · int32Optional
totalinteger · int32 · nullableOptional
omittedstring[]Optional
idstringOptional
atstring · date-time · nullableOptional
idstringOptional
namestringOptional
iconstring · nullableOptional
revisioninteger · int32Optional
atstring · date-time · nullableOptional
idstringOptional
namestringOptional
iconstring · nullableOptional
revisioninteger · int32Optional
omittedstring[]Optional
namestringOptional
iconstring · nullableOptional
revisioninteger · int32Optional
statusstringOptional
descriptionstring · nullableOptional
lastAccessAtstring · date-time · nullableOptional
tokenstringOptional
idstringOptional
namestring · min: 1 · max: 500Required
iconstring · nullableOptional
revisioninteger · int32Optional
typestring · enumRequiredPossible values:
statusstring · enumRequiredPossible values:
idstringOptional
namestringOptional
revisioninteger · int32Optional
descriptionstringOptional
group.buyersstring[]Optional
sharedAccountbooleanOptionalDeprecated
configurablebooleanOptional
defaultbooleanOptional
paidbooleanOptional
typestring[]Optional
obsoletebooleanOptional
multibooleanOptional
singlebooleanOptional
idstringOptional
atstring · date-time · nullableOptional
idstringOptional
namestringOptional
iconstring · nullableOptional
revisioninteger · int32Optional
atstring · date-time · nullableOptional
idstringOptional
namestringOptional
iconstring · nullableOptional
revisioninteger · int32Optional
omittedstring[]Optional
namestringOptional
iconstring · nullableOptional
revisioninteger · int32Optional
statusstring · enumOptionalPossible values:
400

Invalid RQL, or invalid paging. limit must be positive (caps the stream) or -1 / absent (reads all); offset must be a non-negative integer.

No content

406

No acceptable media type. application/jsonl without the MPT-Streaming header lands here.

No content

413

The result set exceeds the configured stream key cap. Nothing is written to the body.

No content

501

This resource's query service provides no streaming capability.

No content

get/public/v1/accounts/api-tokens
GET /public/v1/accounts/api-tokens HTTP/1.1
Host: api.platform.softwareone.com
Accept: */*
{
  "data": [
    {
      "id": "TKN-4134-7330",
      "revision": 2,
      "name": "Robot",
      "description": "Token for ERP integration",
      "status": "Active",
      "account": {
        "id": "ACC-1234-5678",
        "name": "Microsoft"
      },
      "modules": [
        {
          "id": "MOD-1756-1452"
        },
        {
          "id": "MOD-9042-8216"
        }
      ]
    }
  ],
  "$meta": {
    "pagination": {
      "offset": 0,
      "limit": 10,
      "total": 1
    }
  }
}

Create API token

List API tokens