Making SPF Record

Hey there,
Basically I’m trying to make an SPF record using the API

now to create an “A record” I use this

{“type”:“A”,“name”:“test”,“content”:“123.123.123.123”,“ttl”:1,“priority”:10,“proxied”:true}

Can someone tell me what should I use for making an SPF record

You only need Type, Name, and Content. Something like this should do it:
{“type”:“TXT”,“name”:“example.com”,“content”:“v=spf1 mx a ~all”}

Thank you bro, can u also tell me how can I make an SRV record pls