Generate Artifact Token
Generates a registry token using API key
Generate token via API key. For API key users should login to the support portal and generate one. Tokens generated via client credentials or via API key are valid only for one hour.
Request
URI
POST
https://eapi.broadcom.com/downloads/generateArtifactToken
COPY
Header Parameters
string
X-API-KEY
Required
API key for authentication
string
source
Required
Source of the token generation request
string
Content-Type
Required
Content type of the request
Request Body
Responses
200
if successful
Returns
GenerateTokenResponse
of type(s)
application/json
{
"access_token": "string",
"expires_in": 0,
"scope": "string",
"token_type": "string"
}
string
access_token
Optional
Access token for authentication
integer As int64
As int64
expires_in
Optional
Token expiration time in seconds
string
scope
Optional
Token scope
string
token_type
Optional
Type of token, typically 'Bearer'
401
if invalid API key is provided
Returns
ErrorResponse
of type(s)
application/json
{
"error": "string",
"error_description": "string"
}
string
error
Optional
Error code
string
error_description
Optional
Detailed error description
Code Samples
COPY
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{}' https://{api_host}/downloads/generateArtifactToken
Customer Support Portal Registry Token Apis Operations
POST
Generate Artifact Token