openapi: 3.0.0 info: title: Soracom and Query Analysis Credential API description: Run SQL queries against Soracom Query, fetch query schemas, and search SIMs, Inventory devices, and Sigfox devices. version: 20250903-043502 servers: - description: Japan coverage production API endpoint url: https://api.soracom.io/v1 - description: Global coverage production API endpoint url: https://g.api.soracom.io/v1 tags: - description: '[Credentials store](/en/docs/credentials-store/) Create, update, and delete credentials ' name: Credential paths: /credentials: get: description: Returns a list of credential sets. operationId: listCredentials responses: '200': content: application/json: schema: items: $ref: '#/components/schemas/CredentialsModel' type: array description: OK. security: - api_key: [] api_token: [] summary: List credential sets tags: - Credential x-soracom-cli: - credentials list /credentials/{credentials_id}: delete: description: Deletes a credential set. operationId: deleteCredential parameters: - description: Credential set ID. in: path name: credentials_id required: true schema: type: string responses: '204': description: Credential set has been deleted. '404': description: Not Found. security: - api_key: [] api_token: [] summary: Delete a credential set tags: - Credential x-soracom-cli: - credentials delete post: description: Creates a new credential set. operationId: createCredential parameters: - description: Credential set ID. in: path name: credentials_id required: true schema: type: string requestBody: content: application/json: examples: API Token credentials: $ref: '#/components/examples/APITokenCredentials' AWS IAM Role credentials: $ref: '#/components/examples/IAMRoleCredentials' AWS credentials: $ref: '#/components/examples/AWSCredentials' Asteria Platio credentials: $ref: '#/components/examples/InfoteriaPlatioCredentials' Azure IoT credentials: $ref: '#/components/examples/AzureIoTCredentials' Azure credentials: $ref: '#/components/examples/AzureCredentials' Esri Japan ArcGIS Online credentials: $ref: '#/components/examples/EsrijCredentials' Google Cloud IoT Core credentials: $ref: '#/components/examples/GoogleIoTCredentials' Google Service Account (JSON): $ref: '#/components/examples/GoogleServiceAccountJson' Kii Thing-IF credentials: $ref: '#/components/examples/KiiThingifCredentials' LANDLOG credentials: $ref: '#/components/examples/LandlogCredentials' OPTiM Cloud IoT OS credentials: $ref: '#/components/examples/OptimCloudCredentials' Pre-Shared Key: $ref: '#/components/examples/PreSharedKey' PubNub credentials: $ref: '#/components/examples/PubnubCredentials' SensorCorpus credentials: $ref: '#/components/examples/SensorcorpusCredentials' Username password credentials: $ref: '#/components/examples/UsernamePasswordCredentials' WingArc1st MotionBoard credentials: $ref: '#/components/examples/MotionboardCredentials' X.509 certificate: $ref: '#/components/examples/X509Certificate' YE DIGITAL MMCloud credentials: $ref: '#/components/examples/MmcloudCredentials' schema: $ref: '#/components/schemas/CreateAndUpdateCredentialsModel' description: Credential set. required: true responses: '201': content: application/json: schema: $ref: '#/components/schemas/CredentialsModel' description: Credential set has been created. security: - api_key: [] api_token: [] summary: Create a credential set tags: - Credential x-soracom-cli: - credentials create put: description: Updates a credential set. operationId: updateCredential parameters: - description: Credential set ID. in: path name: credentials_id required: true schema: type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/CreateAndUpdateCredentialsModel' description: Credential set. required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/CredentialsModel' description: OK. '400': description: There was an error in the request or the specified token has already expired. (In the latter case, you will need to use the /auth API to do authentication once again.) security: - api_key: [] api_token: [] summary: Update a credential set tags: - Credential x-soracom-cli: - credentials update components: examples: OptimCloudCredentials: value: credentials: client_id: sample_client client_secret: sample_secret type: optim-cloud-IoT-OS-credentials GoogleIoTCredentials: value: credentials: algorithm: RS256 deviceId: sample_device privateKey: your_private_key projectId: sample_projectID region: asia-east1 registryId: sample type: googleIoT-credentials AWSCredentials: value: credentials: accessKeyId: sampleAccessKeyId secretAccessKey: sampleSecret type: aws-credentials AzureIoTCredentials: value: credentials: sharedAccessKey: sample_access_key sharedAccessKeyName: sample type: azureIoT-credentials AzureCredentials: value: credentials: key: your_key policyName: your_policy_name type: azure-credentials InfoteriaPlatioCredentials: value: credentials: secretToken: sample_secret tokenId: sample_token type: infoteria-platio-credentials PubnubCredentials: value: credentials: pubKey: sample subKey: sample_sub type: pubnub-credentials KiiThingifCredentials: value: credentials: app_id: sample_app app_key: sample_key client_id: sample_id client_secret: sample_secret type: kii-thingif-credentials MmcloudCredentials: value: credentials: commandcode: sample_code customerid: sample_customer machineid: sample_id machineidtype: sample_type type: mmcloud-credentials APITokenCredentials: value: credentials: token: sample_token type: api-token-credentials IAMRoleCredentials: value: credentials: externalId: your_external_id roleArn: sample_role type: aws-iam-role-credentials GoogleServiceAccountJson: value: credentials: credentials: '{"sample": "value"}' type: google-service-account-json EsrijCredentials: value: credentials: refererUrl: https://example.com type: esrij-credentials LandlogCredentials: value: credentials: client_id: sample_id client_secret: sample_secret type: landlog-credentials MotionboardCredentials: value: credentials: authkey: sample_auth template: temple_temp tenant: sample_tenant type: motionboard-credentials X509Certificate: value: credentials: ca: sample_ca cert: sample_cert key: sample_key type: x509 PreSharedKey: value: credentials: key: sample_key type: psk UsernamePasswordCredentials: value: credentials: password: sample_pass username: sample_user type: username-password-credentials SensorcorpusCredentials: value: credentials: session_code: sample_code type: sensorcorpus-credentials schemas: CredentialsModel: properties: createDateTime: format: int64 type: integer credentials: type: object credentialsId: type: string description: type: string lastUsedDateTime: format: int64 type: integer type: enum: - api-token-credentials - aws-credentials - aws-iam-role-credentials - azure-credentials - azureIoT-credentials - esrij-credentials - google-service-account-json - googleIoT-credentials - infoteria-platio-credentials - kii-thingif-credentials - landlog-credentials - mmcloud-credentials - motionboard-credentials - optim-cloud-IoT-OS-credentials - private-key-pem - psk - pubnub-credentials - sensorcorpus-credentials - username-password-credentials - x509 type: string updateDateTime: format: int64 type: integer required: - createDateTime - credentials - credentialsId - lastUsedDateTime - type - updateDateTime type: object CreateAndUpdateCredentialsModel: properties: credentials: type: object description: type: string type: enum: - aws-credentials - azure-credentials - psk - x509 type: string type: object securitySchemes: api_key: description: 'API key for authentication. Obtain this from the Soracom User Console or via the Auth API. Required in combination with an API token for all authenticated requests. ' in: header name: X-Soracom-API-Key type: apiKey api_token: description: 'API token for authentication. This token has an expiration time and must be refreshed periodically. Required in combination with an API key for all authenticated requests.' in: header name: X-Soracom-Token type: apiKey