POST /v1/service-accounts
TenantService_CreateServiceAccount
The server validates credentials, tenant, environment and permissions. This page does not send requests. Replace example values; deployed server validation remains authoritative.
Parameters
No path or query parameters.
Request body
allowed_scopesarraycodestringdescriptionstringidempotency_keystringnamestring
cURL
curl --request POST 'https://nexus-api.rainlib.com/v1/service-accounts' \
--header 'Authorization: Bearer <NEXUS_ACCESS_TOKEN>' \
--header 'Content-Type: application/json' \
--data '{
"allowed_scopes": [
"<value>"
],
"code": "<value>",
"description": "<value>",
"idempotency_key": "<value>",
"name": "<value>"
}'Response contract
200 · OK
allowed_scopesarraycodestringcreated_atstringdescriptionstringidstringnamestringowner_display_namestringowner_emailstringowner_user_idstringstatusstringtenant_idstringupdated_atstringversionstring
Generated responses do not enumerate every runtime error. See the integration guide for authentication, conflicts and retries.