---
updatedAt: 2026-09-07T11:13:59.000Z
agentTools:
  projectIndex: https://docs.nacelle.com/llms.txt
---

# Create a new nacelle credential

This will create a new nacelle credential based on the input parameters.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "description": "The Auth API is used to manage credentials and tokens for nacelle authentication and authorization.\n",
    "title": "Auth API",
    "version": "0.1.0"
  },
  "paths": {
    "/credential": {
      "post": {
        "description": "This will create a new nacelle credential based on the input parameters.",
        "operationId": "createCredential",
        "parameters": [
          {
            "in": "header",
            "name": "X-Nacelle-Space-ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CredentialsRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Credentials",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Credentials"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "429": {
            "$ref": "#/components/responses/429"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        },
        "summary": "Create a new nacelle credential",
        "tags": [
          "credentials"
        ]
      }
    }
  },
  "security": [
    {
      "oauth2": []
    }
  ],
  "servers": [
    {
      "url": "http://authimilate.api.nacelle.com/v1"
    },
    {
      "url": "https://authimilate.api.nacelle.com/v1"
    }
  ],
  "components": {
    "responses": {
      "400": {
        "description": "Bad Request",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/error"
            }
          }
        }
      },
      "401": {
        "description": "Unauthorized",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/error"
            }
          }
        }
      },
      "403": {
        "description": "Forbidden",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/error"
            }
          }
        }
      },
      "404": {
        "description": "Not Found",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/error"
            }
          }
        }
      },
      "429": {
        "description": "Rate Limit Exceeded",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/error"
            }
          }
        }
      },
      "500": {
        "description": "Internal Server Error",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/error"
            }
          }
        }
      }
    },
    "securitySchemes": {
      "oauth2": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://authimilate.api.nacelle.com/v1/token",
            "scopes": {
              "read": "Grants read access",
              "write": "Grants write access"
            }
          }
        }
      }
    },
    "schemas": {
      "Credentials": {
        "properties": {
          "client_id": {
            "description": "The unique client ID.",
            "example": "abc123",
            "type": "string",
            "x-go-name": "ClientID"
          },
          "client_secret": {
            "description": "The client's secret key.",
            "example": "secretKey123",
            "type": "string",
            "x-go-name": "ClientSecret"
          },
          "description": {
            "description": "A brief description for the client.",
            "example": "A sample client application for demonstration.",
            "type": "string",
            "x-go-name": "Description"
          },
          "last_updated": {
            "description": "The last time the credentials were updated.",
            "example": "2023-01-10T14:48:00Z",
            "format": "date-time",
            "type": "string",
            "x-go-name": "LastUpdated"
          },
          "name": {
            "description": "The name of the client.",
            "example": "MyClientApp",
            "type": "string",
            "x-go-name": "Name"
          },
          "ttl": {
            "description": "The time-to-live (in seconds) for the credentials.",
            "example": 3600,
            "format": "int64",
            "type": "integer",
            "x-go-name": "TTL"
          }
        },
        "required": [
          "client_id",
          "client_secret",
          "last_updated"
        ],
        "title": "Credentials holds information about client credentials.",
        "type": "object",
        "x-go-package": "github.com/getnacelle/authimilate/services/auth0-mgmt/pkg/model"
      },
      "CredentialsRequest": {
        "properties": {
          "description": {
            "description": "The description of the credentials.",
            "example": "This is a sample description for the credentials.",
            "type": "string",
            "x-go-name": "Description"
          },
          "name": {
            "description": "The name of the credentials.",
            "example": "Sample Name",
            "type": "string",
            "x-go-name": "Name"
          }
        },
        "title": "CredentialsRequest represents the request to create a new credentials.",
        "type": "object",
        "x-go-package": "github.com/getnacelle/authimilate/services/auth0-mgmt/pkg/model"
      },
      "error": {
        "properties": {
          "code": {
            "description": "A numeric error code.",
            "type": "integer"
          },
          "message": {
            "description": "A description of the reason for the error.",
            "type": "string"
          }
        },
        "type": "object"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```