See below error. I have created a key to use enterprise API
KEYS:
keyID = "RQ32N4328Z"
issuerID = "69a6de7a-6c6c-47e3-e053-5b8c7c11a4d1"
privateP8 = "AuthKey.p8"
POST:
req, _ := http.NewRequest("POST",
"https://api.appstoreconnect.apple.com/v1/certificates",
bytes.NewBuffer(jsonData))
req.Header.Set("Authorization", "Bearer "+jwtToken)
req.Header.Set("Content-Type", "application/json")
Payload:
"data": map[string]interface{}{
"type": "certificates",
"attributes": attrs,
"relationships": map[string]interface{}{
"passTypeId": map[string]interface{}{
"data": map[string]interface{}{
"type": "passTypeIds",
"id": passTypeRecordID,
},
},
},
},
Error:
{"pass_type_identifier":"pass.com.example4.dev","pass_type_record_id":"XQY3D39M6N","pass_type_created_new":true,"display_name":"New Dev Pass 4","error":"apple create cert: apple api error: [map[code:FORBIDDEN_ERROR detail:You are not allowed to perform this operation. Please check with one of your Team Admins, or, if you need further assistance, please contact Apple Developer Program Support. https://developer.apple.com/support id:7feed70a-0aa4-4be6-9ef0-f7948f9466ee status:403 title:This request is forbidden for security reasons]]","timestamp":"2026-04-30T00:05:12.451618866-04:00"}