Skip to content

Workload identities

A workload identity defines which external OpenID Connect tokens a workload can use and which Flint scopes it can receive. The identity stores the trusted issuer, audience, subject, and claim conditions. Creating one returns its configuration, with no secret to store. Use workload identity token exchange to exchange a matching issuer token for a short-lived Flint access token.

Manage identities#

Listing and retrieving identities requires accounts.workload_identities.read. Creating, updating, and archiving requires accounts.workload_identities.write. These scopes are available in test and live mode. They are separate from accounts.api_keys.read and accounts.api_keys.write, and partner apps cannot request them.

An identity belongs to the authenticated environment. A test credential manages identities only in its own sandbox; a live credential manages live identities. Send no mode or sandbox_id in the request. An ID outside that environment returns 404 RESOURCE_NOT_FOUND with param: "workload_identity_id", the same as an unknown ID.

API keys, CLI logins, and workload tokens can grant only scopes they already hold in that environment. Trying to grant more returns 403 INSUFFICIENT_SCOPE with reason scope_not_held. The details[0].missing_scopes field names the extra scopes. A PATCH that replaces scopes checks the scopes it adds. Changing the subject or claim conditions or reactivating an identity grants its whole scope set again.

Dashboard owners and admins can manage identities. A Dashboard session needs fresh identity verification to create, reactivate, or widen a live identity or to grant scopes outside the low-risk read allowlist in either mode. If verification is needed, the request returns 403 IDENTITY_VERIFICATION_REQUIRED.

If the workload identity traces back to a team member, Flint checks whether that member's current role can grant the token's scopes on each request. If the member loses that permission or loses access to the merchant, requests with the token return 401 INVALID_CREDENTIAL.

Granting accounts.api_keys.write, accounts.workload_identities.write, commerce.gift_cards.secrets.write, or commerce.license_keys.secrets.write takes full authority in both modes: a full-access key in the identity's mode, a live full-access key for a test identity, or a Dashboard session verified within the last 300 seconds. Other machine callers get 403 FORBIDDEN with reason full_access_required even when they hold the scope; see credentials that can mint keys.

cURL
curl -X POST https://api.withflintpay.com/v1/workload-identities \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "GitHub deployment",
    "issuer": "https://token.actions.githubusercontent.com",
    "subject": "repo:example/store:ref:refs/heads/main",
    "claim_conditions": [
      {"claim": "repository_owner_id", "value": "12345678", "match": "exact"},
      {"claim": "repository_id", "value": "87654321", "match": "exact"}
    ],
    "scopes": ["commerce.orders.read"]
  }'

Flint checks the issuer's discovery document when creating the identity. Each merchant can have at most 100 non-archived identities across all environments.

GET /v1/workload-identities returns a cursor-paginated list. Set page_size from 1 to 100, with 20 returned by default, and pass next_page_token as the next request's page_token. Use status to filter by active, inactive, or archived; the default excludes archived identities. The timestamp filters are created_after, created_before, updated_after, and updated_before, with inclusive lower bounds and exclusive upper bounds. Sort with sort_by=created_at, last_used_at, or name, and sort_direction=asc or desc. The default is created_at descending, with workload_identity_id descending to break ties.

The identity resource#

FieldBehavior
workload_identity_idThe identity's ID, beginning with wid_.
nameYour label, from 1 to 100 characters.
statusactive, inactive, or archived. New identities are active.
modetest or live, from the authenticated environment. Read-only.
sandbox_idThe test identity's sandbox. Omitted on live identities. Read-only.
platformA computed, extensible description of the issuer's platform. Treat unfamiliar values as valid. Read-only.
issuerThe exact trusted issuer URL. Immutable after creation.
audienceThe audience the external token must have. Defaults to Flint's issuer URL, https://api.withflintpay.com on the production API. Immutable after creation.
subjectThe required subject or subject pattern, from 1 to 1,024 characters.
subject_matchexact by default, or glob.
claim_conditionsUp to 10 distinct conditions. Every condition has claim, value, and match; match defaults to exact and also accepts glob. All conditions must match.
scopesAt least one scope the identity can grant. Replacing this array replaces the whole set.
created_byA reference with resource_type (user, api_key, or workload_identity) and resource_id, identifying who created the identity. Read-only.
last_used_atWhen the identity was last used. Omitted if it has never been used.
created_at, updated_atCreation and last-change times, as RFC 3339 timestamps.
archived_atThe archive time. Omitted before the identity is archived.
versionThe current version. Send it as expected_version to require the version you reviewed.

Issuer and claim matching#

The issuer must be an HTTPS URL with a DNS host, at most 255 characters long. Only port 443 is allowed; omit credentials, query parameters, and fragments. The issuer host cannot be Flint's API host or a subdomain of it. Flint compares the issuer exactly. The issuer must expose public OpenID Connect discovery and signing keys; private network addresses and redirects are rejected.

Claim names refer to literal top-level scalar claims. Conditions cannot use the registered JWT claims iss, sub, aud, exp, nbf, iat, or jti; configure the issuer, subject, and audience through their own fields.

In a glob match, * matches characters other than :. A pattern can contain at most three * characters and cannot start with one. If the subject or any claim condition uses a glob, include at least one exact claim condition.

Shared issuers also require an exact condition that pins the workload to your tenant:

IssuerRequired exact condition
GitHub Actionsrepository_owner_id
GitLab.comnamespace_id
Buildkiteorganization_id
Vercelowner_id
CircleCIoidc.circleci.com/org-id

For Google Cloud's https://accounts.google.com issuer, use an exact numeric subject and no glob conditions. Microsoft issuers must identify a specific tenant; common, organizations, and consumers issuers are rejected.

For GitHub Actions, also pin repository_id to keep a renamed or recreated repository from matching only by its name. GitHub's sub claim comes in two forms. Repositories created on or after July 15, 2026, and older ones that are renamed, transferred, or opted in, get the immutable form repo:OWNER@OWNER_ID/REPO@REPO_ID:ref:refs/heads/BRANCH. Other repositories keep repo:OWNER/REPO:ref:refs/heads/BRANCH. A job that uses an environment ends in :environment:NAME instead of the :ref: part. Check a token's sub claim before you set subject, because Flint compares it as written.

Update and archive#

PATCH /v1/workload-identities/{workload_identity_id} accepts name, status, subject, subject_match, claim_conditions, and scopes. Omitted fields keep their current values. Arrays replace their current contents; send "claim_conditions": [] to remove all conditions when the resulting matching policy allows it. Include the current expected_version whenever you send claim_conditions or scopes. It is optional for scalar-only changes. An update that changes nothing preserves version and updated_at.

Set status: "inactive" to deactivate an identity, or status: "active" to reactivate it. A stale expected_version returns 409 VERSION_CONFLICT; retrieve the current identity, review the changes, and send its version with your next update.

cURL
curl -X PATCH https://api.withflintpay.com/v1/workload-identities/wid_01KWJ93G11C7MF8REX91MDS0CD \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"expected_version": 1, "status": "inactive"}'

DELETE /v1/workload-identities/{workload_identity_id} archives the identity and returns the resource with status: "archived" and archived_at set. You can pass expected_version as a query parameter to require the version you reviewed. Archiving is permanent; create a new identity if you need to replace it. An archived identity no longer counts toward the merchant's limit. Archived identities remain readable by ID and appear in lists with status=archived.

Errors#

  • HTTP 400
    A field is invalid. An invalid issuer or discovery document has an INVALID_VALUE detail on issuer. Correct the named field before retrying.
  • HTTP 403
    Reason scope_not_granted: the caller lacks a required management scope. Reason scope_not_held: it tried to grant scopes it doesn't hold. Check details[0].missing_scopes.
  • HTTP 403
    Reason full_access_required: only a full-access key or a freshly verified Dashboard session can grant the step-up scope named by param.
  • HTTP 403
    Complete fresh identity verification in the Dashboard, then retry the live identity change or step-up grant. details[0].verified_at reports the last verification.
  • HTTP 404
    The ID does not identify a workload identity in the authenticated environment.
  • HTTP 409
    VERSION_CONFLICTRefresh, then retry
    Retrieve the identity and review its current version before retrying the update.
  • HTTP 409
    With reason workload_identities, the merchant already has 100 non-archived identities. Archive an unused identity before creating another.
  • HTTP 502
    EXTERNAL_SERVICE_ERRORRetry the same request
    With reason issuer_unavailable, issuer discovery timed out or its server returned a temporary error. error_source is merchant_endpoint and remediation.retry is same_request. Retry after the issuer recovers.

The Workload identity object#

A policy that grants API access to a workload authenticated by an external identity provider.

Returned by GET /v1/workload-identities/{workload_identity_id} and carried by the endpoints below.

Attributes

archived_atstring

Time the identity was archived. Omitted before archival.

audiencestringRequired

Audience (`aud`) a token must carry to match this identity. Set at creation and never changes.

claim_conditionsarray of objectRequired

Bounded value array of top-level scalar claim conditions. Replaced as a whole on PATCH; [] clears it when the remaining policy is valid.

created_atstringRequired

Time the identity was created.

created_byobjectRequired

The user, API key, or workload identity whose request created this identity.

issuerstringRequired

Issuer (`iss`) of the external identity provider whose tokens this identity accepts. Set at creation and never changes.

last_used_atstring

Most recent use. Omitted before the first use.

modeenumRequired

Environment used for this resource or request.

  • test
  • live
namestringRequired

A label that helps you tell workload identities apart, 1 to 100 characters.

platformenumRequired

Computed from the issuer. New platform values may be added.

  • generic
  • github_actions
  • gitlab_ci
  • google_cloud
  • aws
  • azure
  • kubernetes
  • circleci
  • buildkite
  • vercel
  • fly_io
sandbox_idstring

The sandbox containing this identity. Present only in test mode.

scopesarray of stringRequired

Complete scope set granted to this identity. Replaced as a whole on PATCH.

statusenumRequired

Whether the identity currently accepts token exchanges. Only active identities do.

  • active
  • inactive
  • archived
subjectstringRequired

Subject (`sub`) a token must carry, compared as subject_match says.

subject_matchenumRequired

How `subject` is compared with a token's `sub` claim.

  • exact
  • glob
updated_atstringRequired

Time the identity last changed.

versionintegerRequired

Positive concurrency version. Increases on policy and lifecycle changes.

workload_identity_idstringRequired

Unique identifier for this workload identity, prefixed `wid_`.

JSON
{
  "audience": "https://api.withflintpay.com",
  "claim_conditions": [
    {
      "claim": "repository_owner_id",
      "match": "exact",
      "value": "123456"
    }
  ],
  "created_at": "2026-10-24T12:00:00Z",
  "created_by": {
    "resource_id": "usr_01K8ABCDEF0123456789ABCDEF",
    "resource_type": "user"
  },
  "issuer": "https://token.actions.githubusercontent.com",
  "mode": "live",
  "name": "Production deploy",
  "platform": "github_actions",
  "scopes": [
    "commerce.orders.read"
  ],
  "status": "active",
  "subject": "repo:acme/shop:ref:refs/heads/main",
  "subject_match": "exact",
  "updated_at": "2026-10-24T12:00:00Z",
  "version": 1,
  "workload_identity_id": "wid_01K8ABCDEF0123456789ABCDEF"
}

List workload identities#

GET/v1/workload-identities

Requires scope accounts.workload_identities.read or accounts.workload_identities.write

Rate limit: read

Returns identities in the authenticated environment, ordered by created_at descending and workload_identity_id descending by default. Archived identities are excluded unless status includes archived. Default order: created_at descending, then workload_identity_id descending.

Query parameters

statusarray of enum

Filter by status. Omitted, the list leaves out archived rows; name archived to include them. Values are trimmed and deduplicated in first-seen order; empty or unknown entries are rejected. Values within this filter are ORed; separate filters are ANDed.

  • active
  • inactive
  • archived
page_sizeinteger

Maximum number of results to return, from 1 to 100. Defaults to 20.

page_tokenstring

Opaque, signed next_page_token from the previous response, bound to the list and caller. Omit on the first request. You may change `page_size` between pages. Reuse it with the same endpoint, filters, sort, and request context. Do not parse or construct tokens. An altered, invalid, expired, or mismatched token returns a validation error.

sort_byenum

Field to sort by. Defaults to created_at; ties are broken by workload_identity_id.

  • created_at
  • last_used_at
  • name
sort_directionenum

Sort direction. Defaults to desc.

  • asc
  • desc
created_afterstring

Inclusive lower bound on created_at.

created_beforestring

Exclusive upper bound on created_at.

updated_afterstring

Inclusive lower bound on updated_at.

updated_beforestring

Exclusive upper bound on updated_at.

Response · 200

The workload identity.

dataarray of objectRequired

Resource, collection, or operation result returned by this request.

metaobject

Additional information about this response.

next_page_tokenstring

Opaque token to send as `page_token` to retrieve the next page. Omitted when there is no next page.

request_idstringRequired

Identifier of this API request, used to correlate logs and support requests.

curl https://api.withflintpay.com/v1/workload-identities \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY"

The workload identity.

JSON
{
  "data": [
    {
      "audience": "https://api.withflintpay.com",
      "claim_conditions": [
        {
          "claim": "repository_owner_id",
          "match": "exact",
          "value": "123456"
        }
      ],
      "created_at": "2026-10-24T12:00:00Z",
      "created_by": {
        "resource_id": "usr_01K8ABCDEF0123456789ABCDEF",
        "resource_type": "user"
      },
      "issuer": "https://token.actions.githubusercontent.com",
      "mode": "live",
      "name": "Production deploy",
      "platform": "github_actions",
      "scopes": [
        "commerce.orders.read"
      ],
      "status": "active",
      "subject": "repo:acme/shop:ref:refs/heads/main",
      "subject_match": "exact",
      "updated_at": "2026-10-24T12:00:00Z",
      "version": 1,
      "workload_identity_id": "wid_01K8ABCDEF0123456789ABCDEF"
    }
  ],
  "meta": {
    "api_version": "2026-09-07"
  },
  "next_page_token": "opaque-next-page-token",
  "request_id": "req_01KWM6WAHG3N9Q8T2V5XRZ7C4D"
}

Create a workload identity#

POST/v1/workload-identitiesIdempotent

Requires scope accounts.workload_identities.write

Rate limit: sensitive_write

Creates an active identity in the authenticated environment and validates issuer discovery. A Dashboard session needs fresh identity verification to create a live identity or to grant scopes outside the low-risk read allowlist. Other callers may grant only scopes they hold in this environment. Only a full-access key can grant scopes that require full authority.

Request body

audiencestring

Immutable token audience. Defaults to Flint's configured issuer URL when omitted.

claim_conditionsarray of object

Bounded value array, at most 10. Defaults to []. Any glob requires an exact claim condition; shared issuers require tenant pinning.

issuerstringRequired

Immutable public HTTPS issuer with a DNS host, optional port 443, and no userinfo, query, or fragment. Compared exactly.

namestringRequired

A label that helps you tell workload identities apart, 1 to 100 characters. Surrounding whitespace is trimmed before length validation. A supplied value cannot be blank; use null where clearing is supported.

scopesarray of enumRequired

Complete scope set to grant. A Dashboard session needs fresh verification to grant scopes outside this list: commerce.products.read, commerce.subscription_plans.read, commerce.bundles.read, commerce.catalog.read. API credentials may grant only scopes they hold in the same environment. Among API credentials, only full-access keys may grant these scopes: accounts.api_keys.write, commerce.gift_cards.secrets.write, accounts.workload_identities.write, commerce.license_keys.secrets.write.

  • accounts.api_keys.read
  • accounts.api_keys.write
  • accounts.devices.read
  • accounts.devices.write
  • accounts.workload_identities.read
  • accounts.workload_identities.write
  • analytics.read
  • checkouts.checkout_sessions.read
  • checkouts.checkout_sessions.write
  • checkouts.payment_links.read
  • checkouts.payment_links.write
  • commerce.bundles.read
  • commerce.bundles.write
  • commerce.catalog.read
  • commerce.catalog.write
  • commerce.credit_notes.read
  • commerce.credit_notes.write
  • commerce.delivery.read
  • commerce.delivery.write
  • commerce.gift_cards.adjustments.write
  • commerce.gift_cards.read
  • commerce.gift_cards.redemptions.write
  • commerce.gift_cards.secrets.write
  • commerce.gift_cards.write
  • commerce.inventory.allocation.write
  • commerce.inventory.policies.write
  • commerce.inventory.read
  • commerce.inventory.write
  • commerce.invoices.read
  • commerce.invoices.write
  • commerce.license_keys.read
  • commerce.license_keys.secrets.write
  • commerce.license_keys.write
  • commerce.orders.read
  • commerce.orders.write
  • commerce.products.read
  • commerce.products.write
  • commerce.promotions.read
  • commerce.promotions.write
  • commerce.refunds.read
  • commerce.refunds.tax_overrides.write
  • commerce.refunds.write
  • commerce.returns.operations.write
  • commerce.returns.policies.write
  • commerce.returns.read
  • commerce.returns.reasons.write
  • commerce.returns.resolutions.write
  • commerce.returns.write
  • commerce.subscription_plans.read
  • commerce.subscription_plans.write
  • commerce.subscriptions.read
  • commerce.subscriptions.write
  • commerce.tickets.read
  • commerce.tickets.write
  • customers.read
  • customers.sessions.write
  • customers.write
  • developer.merchant_signups.read
  • developer.merchant_signups.write
  • developer.partner_apps.read
  • developer.partner_apps.write
  • developer.request_logs.read
  • developer.request_logs.self.read
  • developer.resource_timelines.read
  • developer.sandboxes.read
  • developer.sandboxes.write
  • developer.test_clocks.read
  • developer.test_clocks.write
  • merchant_billing.read
  • merchants.account_sessions.write
  • merchants.locations.read
  • merchants.locations.write
  • merchants.onboarding.read
  • merchants.onboarding.write
  • merchants.profile.read
  • merchants.profile.write
  • money_movement.balance_transactions.read
  • money_movement.balances.read
  • money_movement.payment_splits.read
  • money_movement.payout_settings.read
  • money_movement.payout_settings.write
  • money_movement.payouts.read
  • money_movement.payouts.write
  • money_movement.platform_fees.read
  • payments.disputes.read
  • payments.disputes.write
  • payments.payment_intents.read
  • payments.payment_intents.write
  • payments.payment_method_domains.read
  • payments.payment_method_domains.write
  • payments.payment_methods.read
  • payments.payment_methods.write
  • payments.readers.read
  • payments.readers.write
  • reports.read
  • reports.write
  • risk.controls.write
  • risk.read
  • risk.reviews.write
  • settings.read
  • settings.write
  • webhooks.read
  • webhooks.write
subjectstringRequired

The subject (`sub`) a token must carry, 1 to 1,024 characters. Compared as subject_match says.

subject_matchenum

How `subject` is compared with a token's `sub` claim. Defaults to exact.

  • exact
  • glob

Response · 201

The created workload identity.

dataobjectRequired

Resource, collection, or operation result returned by this request.

metaobject

Additional information about this response.

request_idstringRequired

Identifier of this API request, used to correlate logs and support requests.

curl -X POST https://api.withflintpay.com/v1/workload-identities \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: a-unique-key" \
  -d '{
    "claim_conditions": [
      {
        "claim": "repository_owner_id",
        "match": "exact",
        "value": "123456"
      }
    ],
    "issuer": "https://token.actions.githubusercontent.com",
    "name": "Production deploy",
    "scopes": [
      "commerce.orders.read"
    ],
    "subject": "repo:acme/shop:ref:refs/heads/main"
  }'

Get a workload identity#

GET/v1/workload-identities/{workload_identity_id}

Requires scope accounts.workload_identities.read or accounts.workload_identities.write

Rate limit: read

Returns an identity in the authenticated environment, including an archived identity.

Path parameters

workload_identity_idstringRequired

Flint workload identity ID. Must be a valid ID with prefix wid_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.

Response · 200

The workload identity.

Same response as Create a workload identity.

curl https://api.withflintpay.com/v1/workload-identities/wid_01KEZF7C00GKCN7Y1482VY8TWP \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY"

The workload identity.

JSON
{
  "data": {
    "audience": "https://api.withflintpay.com",
    "claim_conditions": [
      {
        "claim": "repository_owner_id",
        "match": "exact",
        "value": "123456"
      }
    ],
    "created_at": "2026-10-24T12:00:00Z",
    "created_by": {
      "resource_id": "usr_01K8ABCDEF0123456789ABCDEF",
      "resource_type": "user"
    },
    "issuer": "https://token.actions.githubusercontent.com",
    "mode": "live",
    "name": "Production deploy",
    "platform": "github_actions",
    "scopes": [
      "commerce.orders.read"
    ],
    "status": "active",
    "subject": "repo:acme/shop:ref:refs/heads/main",
    "subject_match": "exact",
    "updated_at": "2026-10-24T12:00:00Z",
    "version": 1,
    "workload_identity_id": "wid_01K8ABCDEF0123456789ABCDEF"
  },
  "meta": {
    "api_version": "2026-09-07"
  },
  "request_id": "req_01KWM6WAHG3N9Q8T2V5XRZ7C4D"
}

Update a workload identity#

PATCH/v1/workload-identities/{workload_identity_id}Idempotent

Requires scope accounts.workload_identities.write

Rate limit: sensitive_write

Updates mutable policy fields. expected_version is optional for scalar updates and required when claim_conditions or scopes is supplied. Arrays replace their entire value. Issuer and audience are immutable. Dashboard callers reactivating or widening live identities need fresh identity verification.

Path parameters

workload_identity_idstringRequired

Flint workload identity ID. Must be a valid ID with prefix wid_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.

Request body

claim_conditionsarray of object

Bounded value array, at most 10. Defaults to []. Any glob requires an exact claim condition; shared issuers require tenant pinning.

expected_versioninteger

Version most recently read. Required when claim_conditions or scopes is supplied; optional for scalar updates.

namestring

A label that helps you tell workload identities apart, 1 to 100 characters. Omit to keep the current name. Surrounding whitespace is trimmed before length validation. A supplied value cannot be blank; use null where clearing is supported.

scopesarray of enum

Complete scope set to grant. A Dashboard session needs fresh verification to grant scopes outside this list: commerce.products.read, commerce.subscription_plans.read, commerce.bundles.read, commerce.catalog.read. API credentials may grant only scopes they hold in the same environment. Among API credentials, only full-access keys may grant these scopes: accounts.api_keys.write, commerce.gift_cards.secrets.write, accounts.workload_identities.write, commerce.license_keys.secrets.write.

  • accounts.api_keys.read
  • accounts.api_keys.write
  • accounts.devices.read
  • accounts.devices.write
  • accounts.workload_identities.read
  • accounts.workload_identities.write
  • analytics.read
  • checkouts.checkout_sessions.read
  • checkouts.checkout_sessions.write
  • checkouts.payment_links.read
  • checkouts.payment_links.write
  • commerce.bundles.read
  • commerce.bundles.write
  • commerce.catalog.read
  • commerce.catalog.write
  • commerce.credit_notes.read
  • commerce.credit_notes.write
  • commerce.delivery.read
  • commerce.delivery.write
  • commerce.gift_cards.adjustments.write
  • commerce.gift_cards.read
  • commerce.gift_cards.redemptions.write
  • commerce.gift_cards.secrets.write
  • commerce.gift_cards.write
  • commerce.inventory.allocation.write
  • commerce.inventory.policies.write
  • commerce.inventory.read
  • commerce.inventory.write
  • commerce.invoices.read
  • commerce.invoices.write
  • commerce.license_keys.read
  • commerce.license_keys.secrets.write
  • commerce.license_keys.write
  • commerce.orders.read
  • commerce.orders.write
  • commerce.products.read
  • commerce.products.write
  • commerce.promotions.read
  • commerce.promotions.write
  • commerce.refunds.read
  • commerce.refunds.tax_overrides.write
  • commerce.refunds.write
  • commerce.returns.operations.write
  • commerce.returns.policies.write
  • commerce.returns.read
  • commerce.returns.reasons.write
  • commerce.returns.resolutions.write
  • commerce.returns.write
  • commerce.subscription_plans.read
  • commerce.subscription_plans.write
  • commerce.subscriptions.read
  • commerce.subscriptions.write
  • commerce.tickets.read
  • commerce.tickets.write
  • customers.read
  • customers.sessions.write
  • customers.write
  • developer.merchant_signups.read
  • developer.merchant_signups.write
  • developer.partner_apps.read
  • developer.partner_apps.write
  • developer.request_logs.read
  • developer.request_logs.self.read
  • developer.resource_timelines.read
  • developer.sandboxes.read
  • developer.sandboxes.write
  • developer.test_clocks.read
  • developer.test_clocks.write
  • merchant_billing.read
  • merchants.account_sessions.write
  • merchants.locations.read
  • merchants.locations.write
  • merchants.onboarding.read
  • merchants.onboarding.write
  • merchants.profile.read
  • merchants.profile.write
  • money_movement.balance_transactions.read
  • money_movement.balances.read
  • money_movement.payment_splits.read
  • money_movement.payout_settings.read
  • money_movement.payout_settings.write
  • money_movement.payouts.read
  • money_movement.payouts.write
  • money_movement.platform_fees.read
  • payments.disputes.read
  • payments.disputes.write
  • payments.payment_intents.read
  • payments.payment_intents.write
  • payments.payment_method_domains.read
  • payments.payment_method_domains.write
  • payments.payment_methods.read
  • payments.payment_methods.write
  • payments.readers.read
  • payments.readers.write
  • reports.read
  • reports.write
  • risk.controls.write
  • risk.read
  • risk.reviews.write
  • settings.read
  • settings.write
  • webhooks.read
  • webhooks.write
statusenum

Turns the identity on or off. Archiving is a separate DELETE. Omit to keep the current status.

  • active
  • inactive
subjectstring

The subject (`sub`) a token must carry, 1 to 1,024 characters, compared as subject_match says. Omit to keep the current subject.

subject_matchenum

How `subject` is compared with a token's `sub` claim. Omit to keep the current setting.

  • exact
  • glob

Response · 200

The workload identity.

Same response as Create a workload identity.

curl -X PATCH https://api.withflintpay.com/v1/workload-identities/wid_01KEZF7C00GKCN7Y1482VY8TWP \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: a-unique-key" \
  -d '{
    "expected_version": 1,
    "name": "Release deploy",
    "status": "inactive"
  }'

Archive a workload identity#

DELETE/v1/workload-identities/{workload_identity_id}Idempotent

Requires scope accounts.workload_identities.write

Rate limit: sensitive_write

Soft-archives the identity and returns it with status archived. The identity remains readable by ID and cannot be reactivated. Repeating DELETE without a stale fence returns the archived identity without changing its version.

Path parameters

workload_identity_idstringRequired

Flint workload identity ID. Must be a valid ID with prefix wid_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.

Query parameters

expected_versioninteger

Optional version most recently read.

Response · 200

The workload identity.

Same response as Create a workload identity.

curl -X DELETE https://api.withflintpay.com/v1/workload-identities/wid_01KEZF7C00GKCN7Y1482VY8TWP \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY"

Was this helpful?