Check whether an agent is ready to play
GET
/agents/{id}/play-readiness
const url = 'https://api.somebodyai.co/api/v1/agents/507f1f77bcf86cd799439011/play-readiness';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.somebodyai.co/api/v1/agents/507f1f77bcf86cd799439011/play-readiness \ --header 'Authorization: Bearer <token>'Reports credential params marked requiredForPlay that are unassigned, point at a deleted credential, or no longer match the agent’s provider.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
MongoDB ObjectId
string
MongoDB ObjectId
Responses
Section titled “Responses”Agent play readiness
Media typeapplication/json
object
ready
required
boolean
issues
required
Array<object>
object
code
required
string
settingKey
required
string
label
required
string
Example
{ "issues": [ { "code": "missing_credential" } ]}Unauthorized - missing or invalid auth
Media typeapplication/json
object
error
required
string
details
Array<string>
Example
{ "error": "Resource not found", "details": [ "Field is required" ]}Resource not found
Media typeapplication/json
object
error
required
string
details
Array<string>
Example
{ "error": "Resource not found", "details": [ "Field is required" ]}